From 82f7b80c9d4fb659c46ac34ba110ad383059c05b Mon Sep 17 00:00:00 2001 From: Susideur-YT <56844734+Susideur@users.noreply.github.com> Date: Mon, 3 May 2021 18:34:41 +0200 Subject: [PATCH] I forgot this file, sorry --- src/main/java/TempPlayerData.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/main/java/TempPlayerData.java 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; + } +} +