mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-29 05:26:19 +01:00
Check for nulls before dispatching to Dynmap.
This commit is contained in:
parent
3101663625
commit
44cc7de81f
@ -43,6 +43,12 @@ public class DynmapHook {
|
|||||||
* @param message
|
* @param message
|
||||||
*/
|
*/
|
||||||
public void sendMessage(String nick, String message) {
|
public void sendMessage(String nick, String message) {
|
||||||
|
if (nick == null) {
|
||||||
|
nick = "";
|
||||||
|
}
|
||||||
|
if (message == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
dynmapAPI.sendBroadcastToWeb(nick, message);
|
dynmapAPI.sendBroadcastToWeb(nick, message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user