Skip to content

Commit

Permalink
fixed AntiWDL crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzOverLight committed Jan 18, 2023
1 parent 2ae2dc6 commit 0464e41
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public static void loadAddons(){
if(addon instanceof CommandExecutor)
PowerTools.INSTANCE.getServer().getPluginCommand("powertools").setExecutor((CommandExecutor) addon);
if(addon instanceof PluginMessageListener)
PowerTools.INSTANCE.getServer().getMessenger().registerIncomingPluginChannel(PowerTools.INSTANCE, addon.channel(), (PluginMessageListener) addon);
if(addon.channel() != null)
PowerTools.INSTANCE.getServer().getMessenger().registerIncomingPluginChannel(PowerTools.INSTANCE, addon.channel(), (PluginMessageListener) addon);
}
}
}

0 comments on commit 0464e41

Please sign in to comment.