From 6dab69e2c9b45daec51b4cd37d12fe3acc60d712 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sat, 22 Oct 2016 19:26:51 -0400 Subject: [PATCH] Added more listeners, changed name --- plugin.yml | 2 +- src/iie/HelloWorldPlugin.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin.yml b/plugin.yml index d8927be..c00ee65 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,6 +1,6 @@ main: iie.HelloWorldPlugin version: 1.0.0 - name: HelloWorldPlugin + name: ButtonHardcorePlugin commands: hardcore: description: Command that teleports you to hardcore world diff --git a/src/iie/HelloWorldPlugin.java b/src/iie/HelloWorldPlugin.java index 4eed883..6785820 100644 --- a/src/iie/HelloWorldPlugin.java +++ b/src/iie/HelloWorldPlugin.java @@ -11,6 +11,8 @@ import org.bukkit.scoreboard.Objective; import org.bukkit.scoreboard.Scoreboard; import alisolarflare.RandomTP; +import alisolarflare.listeners.ConflictCompassCraftingListener; +import alisolarflare.listeners.DiamondArmorBlocker; public class HelloWorldPlugin extends JavaPlugin { @@ -48,6 +50,8 @@ public class HelloWorldPlugin extends JavaPlugin { getServer().getPluginManager().registerEvents(new JoinListener(this), this); getServer().getPluginManager().registerEvents(new DeathListener(this), this); getServer().getPluginManager().registerEvents(new BoundaryListener(this), this); + getServer().getPluginManager().registerEvents(new DiamondArmorBlocker(), this); + getServer().getPluginManager().registerEvents(new ConflictCompassCraftingListener(), this); }