From 7e7e4ff37ad71828a822fc51779b16b9ad6e798f Mon Sep 17 00:00:00 2001 From: aPunch Date: Sat, 21 Jan 2012 08:44:21 -0600 Subject: [PATCH] small change --- src/net/citizensnpcs/Citizens.java | 2 +- src/net/citizensnpcs/EventListen.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/net/citizensnpcs/Citizens.java b/src/net/citizensnpcs/Citizens.java index 74561e4ea..f503af52f 100644 --- a/src/net/citizensnpcs/Citizens.java +++ b/src/net/citizensnpcs/Citizens.java @@ -58,7 +58,7 @@ public class Citizens extends JavaPlugin { saves = new YamlStorage(getDataFolder() + File.separator + "saves.yml"); // Register events - new EventListen(this); + getServer().getPluginManager().registerEvents(new EventListen(), this); Messaging.log("v" + getDescription().getVersion() + " enabled."); diff --git a/src/net/citizensnpcs/EventListen.java b/src/net/citizensnpcs/EventListen.java index 1226e13a8..298f2e004 100644 --- a/src/net/citizensnpcs/EventListen.java +++ b/src/net/citizensnpcs/EventListen.java @@ -20,10 +20,6 @@ import org.bukkit.event.world.ChunkUnloadEvent; public class EventListen implements Listener { private Set toRespawn = new HashSet(); - public EventListen(Citizens plugin) { - plugin.getServer().getPluginManager().registerEvents(this, plugin); - } - /* * Entity events */