From d2a302061f64c7ebf76b048f782051a435c3bfb0 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Wed, 2 Nov 2016 18:39:16 +0100 Subject: [PATCH] Using the exception listener here as well --- src/main/java/buttondevteam/chat/PluginMain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/buttondevteam/chat/PluginMain.java b/src/main/java/buttondevteam/chat/PluginMain.java index 212721d..c5df39a 100644 --- a/src/main/java/buttondevteam/chat/PluginMain.java +++ b/src/main/java/buttondevteam/chat/PluginMain.java @@ -68,7 +68,7 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15. public void onEnable() { Instance = this; - getServer().getPluginManager().registerEvents(new PlayerListener(), this); + TBMCCoreAPI.RegisterEventsForExceptions(new PlayerListener(), this); TBMCChatAPI.AddCommands(this, YeehawCommand.class); Console = this.getServer().getConsoleSender(); LoadFiles();