Skip to content

Commit 9ec9605

Browse files
GrimReaperFloofGrimReaperFloof
authored andcommitted
1.0
0 parents  commit 9ec9605

File tree

14 files changed

+537
-0
lines changed

14 files changed

+537
-0
lines changed

.classpath

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
4+
<classpathentry kind="src" path="src"/>
5+
<classpathentry kind="lib" path="D:/eclipse-workspace/eclipse-libraries/spigot-api-1.8.8-R0.1-SNAPSHOT-shaded.jar">
6+
<attributes>
7+
<attribute name="javadoc_location" value="https://hub.spigotmc.org/javadocs/spigot/"/>
8+
</attributes>
9+
</classpathentry>
10+
<classpathentry kind="output" path="bin"/>
11+
</classpath>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
3+
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
4+
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
5+
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${project}"/>
6+
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
7+
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
8+
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
9+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="MCPluginTest"/>
10+
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${project_loc}/build.xml"/>
11+
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,auto,clean"/>
12+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
13+
</launchConfiguration>

.project

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>DropBlocker</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
15+
<arguments>
16+
<dictionary>
17+
<key>LaunchConfigHandle</key>
18+
<value>&lt;project&gt;/.externalToolBuilders/Make JAR.launch</value>
19+
</dictionary>
20+
</arguments>
21+
</buildCommand>
22+
</buildSpec>
23+
<natures>
24+
<nature>org.eclipse.jdt.core.javanature</nature>
25+
</natures>
26+
</projectDescription>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
5+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6+
org.eclipse.jdt.core.compiler.compliance=1.8
7+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
9+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12+
org.eclipse.jdt.core.compiler.source=1.8
4.45 KB
Binary file not shown.
1.81 KB
Binary file not shown.
5.82 KB
Binary file not shown.

build.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project name="DropBlocker" default="makejar" basedir=".">
3+
<target name="makejar" description="Create a jar for the project">
4+
<mkdir dir="target"></mkdir>
5+
<jar destfile="target/${ant.project.name}.jar">
6+
<fileset dir="bin"></fileset>
7+
<fileset file="plugin.yml"></fileset>
8+
<fileset file="config.yml"></fileset>
9+
</jar>
10+
</target>
11+
</project>

config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#If this is set to true, the items in the 'items' list will be able to get dropped/spawned and any other item will be blocked.
2+
#if this is set to false, the items in the list will be blocked from being dropped/spawned and any other item will be allowed.
3+
items-is-whitelist: false
4+
5+
#What events should DropBlocker listen to?
6+
onItemSpawn: false #any item
7+
onPlayerDrop: true #items dropped by players (pressing Q)
8+
onEntityDeath: true #items dropped from death
9+
10+
items:
11+
#- BEDROCK
12+
#- INK_SACK:2
13+
14+
#The example above will block Bedrock and Cactus Green dye (which is actually Ink Sac with a data value of 2)

plugin.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
main: me.grimreaperfloof.dropblocker.Main
2+
name: DropBlocker
3+
version: 1.0
4+
author: GrimReapeR
5+
description: Block certain items from being dropped.
6+
commands:
7+
dbfilter:
8+
description: Apply DropBlocker to all dropped items in a world or world a player is in.
9+
usage: /dbfilter [player/world]
10+
permission: dropblocker.filter
11+
permission-message: You don't have permission to use this command.

0 commit comments

Comments
 (0)