refactor: new line fix
This commit is contained in:
parent
91835389b1
commit
836bbd3f90
1 changed files with 3 additions and 3 deletions
|
@ -12,15 +12,15 @@ import java.util.ArrayList;
|
|||
public class PluginMessageHandler implements PluginMessageListener {
|
||||
@Override
|
||||
public void onPluginMessageReceived(String channel, Player player, byte[] message) {
|
||||
if (!channel.equals(NickoBungee.NICKO_PLUGIN_CHANNEL_UPDATE)) {
|
||||
if (!channel.equals(NickoBungee.SERVER_DATA)) {
|
||||
return;
|
||||
}
|
||||
|
||||
final ByteArrayDataInput in = ByteStreams.newDataInput(message);
|
||||
final int payloadSize = in.readInt();
|
||||
if (payloadSize == 0 || payloadSize > 4) {
|
||||
NickoBukkit.getInstance().getLogger().severe("Prevented error by skipping malformed payload of size " + payloadSize + "!" +
|
||||
"This should not have happened, open an issue at https://atnrch.xyz/git/aro/Nicko !");
|
||||
NickoBukkit.getInstance().getLogger().severe("Prevented error by skipping malformed payload of size " + payloadSize + "!");
|
||||
NickoBukkit.getInstance().getLogger().severe("This should not have happened, open an issue at https://atnrch.xyz/git/aro/Nicko !");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue