Skip to content

Commit 34abca6

Browse files
Now that ScriptCraftPlugin is no longer a Listener, HandlerList.unregisterAll is unambiguous
1 parent 4369fd7 commit 34abca6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/js/lib/scriptcraft.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,7 @@ function __onEnable(__engine, __plugin, __script) {
575575
Canary.manager().enablePlugin(pluginName);
576576
} else {
577577
__plugin.pluginLoader.disablePlugin(__plugin);
578-
org.bukkit.event.HandlerList['unregisterAll(org.bukkit.plugin.Plugin)'](
579-
__plugin
580-
);
578+
org.bukkit.event.HandlerList.unregisterAll(__plugin);
581579
server.scheduler.cancelTasks(__plugin);
582580
__plugin.pluginLoader.enablePlugin(__plugin);
583581
}

0 commit comments

Comments
 (0)