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 /src/main | |
parent | 113dc1706d59e5b6e873f197762b8a895b9cc30f (diff) |
clean-up
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/yulqen/test/EventListening.java | 30 |
1 files changed, 15 insertions, 15 deletions
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) { |