From 35ccf22a553ed1a5e412f125a60856b5a37ed449 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 23 Nov 2017 23:51:14 +0100 Subject: [PATCH] Added handling if a class... doesn't exist --- src/main/java/buttondevteam/chat/listener/PlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/buttondevteam/chat/listener/PlayerListener.java b/src/main/java/buttondevteam/chat/listener/PlayerListener.java index 3cb70a2..ce770b2 100644 --- a/src/main/java/buttondevteam/chat/listener/PlayerListener.java +++ b/src/main/java/buttondevteam/chat/listener/PlayerListener.java @@ -258,7 +258,7 @@ public class PlayerListener implements Listener { if (e.isCancelled()) return; e.setCancelled(ChatProcessing.ProcessChat(e)); - } catch (Exception ex) { + } catch (NoClassDefFoundError | Exception ex) { // Weird things can happen for (Player p : Bukkit.getOnlinePlayers()) if (e.shouldSendTo(p)) p.sendMessage("§c!§r["