mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-24 18:18:58 +01:00
small change
This commit is contained in:
parent
3239eb3cc0
commit
7e7e4ff37a
@ -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.");
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user