From cb54635dfc6284bdb85befd5fcc4cb66ef219bb7 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 20 Mar 2022 10:05:54 +0000 Subject: clean-up --- .classpath | 38 +++++++++++++++++++++++ .project | 23 ++++++++++++++ .settings/org.eclipse.core.resources.prefs | 6 ++++ .settings/org.eclipse.jdt.core.prefs | 8 +++++ src/main/java/com/yulqen/test/EventListening.java | 30 +++++++++--------- 5 files changed, 90 insertions(+), 15 deletions(-) create mode 100644 .classpath create mode 100644 .project create mode 100644 .settings/org.eclipse.core.resources.prefs create mode 100644 .settings/org.eclipse.jdt.core.prefs diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..002ad57 --- /dev/null +++ b/.classpath @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..2db8327 --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + test-mc-plugin + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + 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/=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) { -- cgit v1.2.3