Handle null pointer exceptions when dynmap is broken.

This commit is contained in:
cnaude 2017-05-26 21:24:32 -07:00
parent 198d70a332
commit 6aac9c0988

View File

@ -49,6 +49,10 @@ public class DynmapHook {
if (message == null) {
return;
}
dynmapAPI.sendBroadcastToWeb(nick, message);
try {
dynmapAPI.sendBroadcastToWeb(nick, message);
} catch (Exception ex) {
plugin.logError("DynmapHook:sendMessage: " + ex.getMessage());
}
}
}