mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-21 23:21:32 +01:00
Fix #1625
This commit is contained in:
parent
f9e94a4121
commit
f7024d5382
@ -56,9 +56,10 @@ public class BungeeReceiver implements PluginMessageListener, SettingsDependent
|
|||||||
final ByteArrayDataInput dataIn = ByteStreams.newDataInput(dataBytes);
|
final ByteArrayDataInput dataIn = ByteStreams.newDataInput(dataBytes);
|
||||||
|
|
||||||
// Parse type
|
// Parse type
|
||||||
final Optional<MessageType> type = MessageType.fromId(dataIn.readUTF());
|
final String typeId = dataIn.readUTF();
|
||||||
|
final Optional<MessageType> type = MessageType.fromId(typeId);
|
||||||
if (!type.isPresent()) {
|
if (!type.isPresent()) {
|
||||||
ConsoleLogger.debug("Received unsupported forwarded bungeecord message type! ({0})", type);
|
ConsoleLogger.debug("Received unsupported forwarded bungeecord message type! ({0})", typeId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,9 +89,10 @@ public class BungeeReceiver implements PluginMessageListener, SettingsDependent
|
|||||||
|
|
||||||
private void handle(final ByteArrayDataInput in) {
|
private void handle(final ByteArrayDataInput in) {
|
||||||
// Parse type
|
// Parse type
|
||||||
final Optional<MessageType> type = MessageType.fromId(in.readUTF());
|
final String typeId = in.readUTF();
|
||||||
|
final Optional<MessageType> type = MessageType.fromId(typeId);
|
||||||
if (!type.isPresent()) {
|
if (!type.isPresent()) {
|
||||||
ConsoleLogger.debug("Received unsupported bungeecord message type! ({0})", type);
|
ConsoleLogger.debug("Received unsupported bungeecord message type! ({0})", typeId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user