mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-21 07:46:55 +00:00
Managers -> Services
This commit is contained in:
1 parent
e2f8e31fa0
commit
af602a414a
51 files changed
+411
-307
No files matched your search
@@ -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