Add debug message for #1622

This commit is contained in:
Gabriele C 2018-08-27 15:04:37 +02:00
parent 22623aac85
commit e0d8caa95b

View File

@ -66,7 +66,14 @@ public class BungeeReceiver implements PluginMessageListener, SettingsDependent
return;
}
String argument = in.readUTF();
String argument;
try {
argument = in.readUTF();
} catch (IllegalStateException e) {
ConsoleLogger.warning("Received invalid plugin message of type " + type.get().name() + ": argument is missing!");
return;
}
switch (type.get()) {
case UNREGISTER:
dataSource.invalidateCache(argument);