mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-25 02:27:41 +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");
|
saves = new YamlStorage(getDataFolder() + File.separator + "saves.yml");
|
||||||
|
|
||||||
// Register events
|
// Register events
|
||||||
new EventListen(this);
|
getServer().getPluginManager().registerEvents(new EventListen(), this);
|
||||||
|
|
||||||
Messaging.log("v" + getDescription().getVersion() + " enabled.");
|
Messaging.log("v" + getDescription().getVersion() + " enabled.");
|
||||||
|
|
||||||
|
@ -20,10 +20,6 @@ import org.bukkit.event.world.ChunkUnloadEvent;
|
|||||||
public class EventListen implements Listener {
|
public class EventListen implements Listener {
|
||||||
private Set<Integer> toRespawn = new HashSet<Integer>();
|
private Set<Integer> toRespawn = new HashSet<Integer>();
|
||||||
|
|
||||||
public EventListen(Citizens plugin) {
|
|
||||||
plugin.getServer().getPluginManager().registerEvents(this, plugin);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Entity events
|
* Entity events
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user