small change

This commit is contained in:
aPunch 2012-01-21 08:44:21 -06:00
parent 3239eb3cc0
commit 7e7e4ff37a
2 changed files with 1 additions and 5 deletions

View File

@ -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.");

View File

@ -20,10 +20,6 @@ import org.bukkit.event.world.ChunkUnloadEvent;
public class EventListen implements Listener {
private Set<Integer> toRespawn = new HashSet<Integer>();
public EventListen(Citizens plugin) {
plugin.getServer().getPluginManager().registerEvents(this, plugin);
}
/*
* Entity events
*/