diff --git a/src/main/java/TempPlayerData.java b/src/main/java/TempPlayerData.java new file mode 100644 index 0000000..b827101 --- /dev/null +++ b/src/main/java/TempPlayerData.java @@ -0,0 +1,24 @@ +import java.io.Serializable; +import java.util.HashMap; + +@SuppressWarnings("serial") +public class TempPlayerData implements Serializable { + public static HashMap tempPlayerDatas = new HashMap<>(); // uuid, data + public Integer hue; + public String realName; + public String nameNotSpace; + public String nameNotColor; + public int id; + + public TempPlayerData(Integer hue, String name, int id){ + this.hue = hue; + this.realName = name; + this.nameNotSpace = name.replaceAll("\\s+", "_"); + this.nameNotColor = name.replaceAll("\\[", "[["); + this.id = id; + } + void setHue(int i) { + this.hue = i; + } +} +