mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-05 23:36:12 +00:00
Managers -> Services
This commit is contained in:
@@ -448,16 +448,12 @@ public abstract class VolmitPlugin extends JavaPlugin implements Listener {
|
||||
}
|
||||
|
||||
public void registerListener(Listener l) {
|
||||
if (bad) {
|
||||
return;
|
||||
}
|
||||
Iris.debug("Register Listener " + l.getClass().getSimpleName());
|
||||
Bukkit.getPluginManager().registerEvents(l, this);
|
||||
}
|
||||
|
||||
public void unregisterListener(Listener l) {
|
||||
if (bad) {
|
||||
return;
|
||||
}
|
||||
Iris.debug("Register Listener " + l.getClass().getSimpleName());
|
||||
HandlerList.unregisterAll(l);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user