Added handling if a class... doesn't exist

This commit is contained in:
Norbi Peti 2017-11-23 23:51:14 +01:00
parent 840b522a98
commit 35ccf22a55

View file

@ -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["