diff options
author | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-03-20 10:05:54 +0000 |
---|---|---|
committer | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-03-20 10:05:54 +0000 |
commit | cb54635dfc6284bdb85befd5fcc4cb66ef219bb7 (patch) | |
tree | 3eb123412cbfe5e7a2c372e30468e194633002e0 | |
parent | 113dc1706d59e5b6e873f197762b8a895b9cc30f (diff) |
clean-up
-rw-r--r-- | .classpath | 38 | ||||
-rw-r--r-- | .project | 23 | ||||
-rw-r--r-- | .settings/org.eclipse.core.resources.prefs | 6 | ||||
-rw-r--r-- | .settings/org.eclipse.jdt.core.prefs | 8 | ||||
-rw-r--r-- | src/main/java/com/yulqen/test/EventListening.java | 30 |
5 files changed, 90 insertions, 15 deletions
diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..002ad57 --- /dev/null +++ b/.classpath @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" output="target/classes" path="src/main/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + <attribute name="test" value="true"/> + </attributes> + </classpathentry> + <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + <attribute name="test" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="output" path="target/classes"/> +</classpath> diff --git a/.project b/.project new file mode 100644 index 0000000..2db8327 --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>test-mc-plugin</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.m2e.core.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.m2e.core.maven2Nature</nature> + </natures> +</projectDescription> diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/<project>=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..2f5cc74 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/src/main/java/com/yulqen/test/EventListening.java b/src/main/java/com/yulqen/test/EventListening.java index 6a20c87..bf108c2 100644 --- a/src/main/java/com/yulqen/test/EventListening.java +++ b/src/main/java/com/yulqen/test/EventListening.java @@ -31,7 +31,7 @@ public class EventListening implements Listener { @EventHandler public void joinMessage(PlayerJoinEvent event) { - event.setJoinMessage("Do not pick up diamond armour from the ground. Boom.....!"); + event.setJoinMessage("YOU CAN NOW PICK UP YOUR DIAMOND ARMOUR. Remember - this game makes diamonds very easy to obtain ;-)"); } @EventHandler @@ -112,20 +112,20 @@ public class EventListening implements Listener { } } - @EventHandler - public void boomIfPickUpDiamondGear(EntityPickupItemEvent e) throws InterruptedException { - LivingEntity player = e.getEntity(); - World world = player.getWorld(); - Location loc = player.getLocation(); - if ((e.getItem().getItemStack().getType().equals(Material.DIAMOND_BOOTS)) || e.getItem().getItemStack().getType().equals(Material.DIAMOND_CHESTPLATE) - || e.getItem().getItemStack().getType().equals(Material.DIAMOND_HELMET) - || e.getItem().getItemStack().getType().equals(Material.DIAMOND_LEGGINGS)) - { - player.sendMessage("Sorry! You that stuff isn't for you... Boom!"); - TimeUnit.SECONDS.sleep(2); - world.createExplosion(loc, 4f); - } - } +// @EventHandler +// public void boomIfPickUpDiamondGear(EntityPickupItemEvent e) throws InterruptedException { +// LivingEntity player = e.getEntity(); +// World world = player.getWorld(); +// Location loc = player.getLocation(); +// if ((e.getItem().getItemStack().getType().equals(Material.DIAMOND_BOOTS)) || e.getItem().getItemStack().getType().equals(Material.DIAMOND_CHESTPLATE) +// || e.getItem().getItemStack().getType().equals(Material.DIAMOND_HELMET) +// || e.getItem().getItemStack().getType().equals(Material.DIAMOND_LEGGINGS)) +// { +// player.sendMessage("Sorry! You that stuff isn't for you... Boom!"); +// TimeUnit.SECONDS.sleep(2); +// world.createExplosion(loc, 4f); +// } +// } @EventHandler public void sophieSpawnsWithDiamondArmour(PlayerRespawnEvent e) { |