Limit plugin channels to 16 characters for 1.7 support

Fixes #223
This commit is contained in:
games647
2018-08-07 13:41:22 +02:00
parent 64175fe9e8
commit 101f7207a9
4 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import com.google.common.io.ByteArrayDataOutput;
public class ChangePremiumMessage implements ChannelMessage {
public static final String CHANGE_CHANNEL = "ch-status";
public static final String CHANGE_CHANNEL = "ch-st";
private String playerName;
private boolean willEnable;

View File

@ -7,7 +7,7 @@ import java.util.UUID;
public class LoginActionMessage implements ChannelMessage {
public static final String FORCE_CHANNEL = "force-act";
public static final String FORCE_CHANNEL = "force";
private Type type;

View File

@ -2,6 +2,8 @@ package com.github.games647.fastlogin.core.message;
public class NamespaceKey {
private static final char SEPARATOR_CHAR = ':';
private final String namespace;
private final String key;
@ -11,7 +13,7 @@ public class NamespaceKey {
this.namespace = namespace.toLowerCase();
this.key = key.toLowerCase();
this.combined = this.namespace + ':' + this.key;
this.combined = this.namespace + SEPARATOR_CHAR + this.key;
}
public String getCombinedName() {

View File

@ -5,7 +5,7 @@ import com.google.common.io.ByteArrayDataOutput;
public class SuccessMessage implements ChannelMessage {
public static final String SUCCESS_CHANNEL = "success";
public static final String SUCCESS_CHANNEL = "succ";
@Override
public String getChannelName() {