summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-09-30 15:47:43 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-09-30 15:47:43 +0100
commit113dc1706d59e5b6e873f197762b8a895b9cc30f (patch)
tree8c62916f86972b57f8a84b5b8ea99ad9c3f1e30c
parent83aa1c52cdf4d0fb132da0218ba40e0b898bddf4 (diff)
removed method to grant harvey all that booty.
-rw-r--r--src/main/java/com/yulqen/test/EventListening.java35
-rw-r--r--src/main/java/com/yulqen/test/Test.java2
2 files changed, 3 insertions, 34 deletions
diff --git a/src/main/java/com/yulqen/test/EventListening.java b/src/main/java/com/yulqen/test/EventListening.java
index a0f3c58..6a20c87 100644
--- a/src/main/java/com/yulqen/test/EventListening.java
+++ b/src/main/java/com/yulqen/test/EventListening.java
@@ -31,9 +31,7 @@ public class EventListening implements Listener {
@EventHandler
public void joinMessage(PlayerJoinEvent event) {
- event.setJoinMessage("Welcome to the Server! Please behave and fun! (By the way, we have plugins and strange things might " +
- "happen");
- event.setJoinMessage("Please report bugs to the server.");
+ event.setJoinMessage("Do not pick up diamond armour from the ground. Boom.....!");
}
@EventHandler
@@ -130,35 +128,6 @@ public class EventListening implements Listener {
}
@EventHandler
- public void harveySpawnsWithDiamondArmour(PlayerRespawnEvent e) {
- Player player = e.getPlayer();
- if (player.getName().equals("HarveyL")) {
- ItemStack chestPlate = new ItemStack(Material.DIAMOND_CHESTPLATE);
- ItemStack pants = new ItemStack(Material.DIAMOND_LEGGINGS);
- ItemStack helmet = new ItemStack(Material.DIAMOND_HELMET);
- ItemStack boots = new ItemStack(Material.DIAMOND_BOOTS);
-
- chestPlate.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 4);
- chestPlate.addEnchantment(Enchantment.DURABILITY, 3);
- chestPlate.addEnchantment(Enchantment.BINDING_CURSE, 1);
- pants.addEnchantment(Enchantment.PROTECTION_ENVIRONMENTAL, 4);
- pants.addEnchantment(Enchantment.DURABILITY, 3);
- pants.addEnchantment(Enchantment.BINDING_CURSE, 1);
- helmet.addEnchantment(Enchantment.PROTECTION_EXPLOSIONS, 4);
- helmet.addEnchantment(Enchantment.DURABILITY, 3);
- helmet.addEnchantment(Enchantment.BINDING_CURSE, 1);
- boots.addEnchantment(Enchantment.DURABILITY, 3);
- boots.addEnchantment(Enchantment.PROTECTION_FALL, 4);
- boots.addEnchantment(Enchantment.BINDING_CURSE, 1);
-
- player.getInventory().addItem(chestPlate);
- player.getInventory().addItem(pants);
- player.getInventory().addItem(helmet);
- player.getInventory().addItem(boots);
- }
- }
-
- @EventHandler
public void sophieSpawnsWithDiamondArmour(PlayerRespawnEvent e) {
Player player = e.getPlayer();
if (player.getName().equals("SophieLemLem")) {
@@ -196,7 +165,7 @@ public class EventListening implements Listener {
}
@EventHandler
- public void boomIfPickupOak(EntityPickupItemEvent e) {
+ public void skeletonIfPickUpLog(EntityPickupItemEvent e) {
LivingEntity player = e.getEntity();
Location loc = player.getLocation();
World world = player.getWorld();
diff --git a/src/main/java/com/yulqen/test/Test.java b/src/main/java/com/yulqen/test/Test.java
index 1c553af..a3c3c18 100644
--- a/src/main/java/com/yulqen/test/Test.java
+++ b/src/main/java/com/yulqen/test/Test.java
@@ -7,7 +7,7 @@ public final class Test extends JavaPlugin {
@Override
public void onEnable() {
- System.out.println("Test MC Plugin Loaded");
+ System.out.println("ChickenDefender Plugin Loaded");
World world = getServer().getWorld("mad_march_hare");
// for (int i = 0; i < 20; i++) {
// System.out.println("Spawning " + EntityType.CHICKEN);