From 81429cd517938c3f25c858016b3fb4fa91681627 Mon Sep 17 00:00:00 2001 From: iCaitlyn <55845572+iCaitlyn@users.noreply.github.com> Date: Wed, 9 Feb 2022 00:45:52 +0800 Subject: [PATCH] Update Data.java --- src/main/java/de/Linus122/TelegramChat/Data.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/de/Linus122/TelegramChat/Data.java b/src/main/java/de/Linus122/TelegramChat/Data.java index d2b0449..09a6019 100755 --- a/src/main/java/de/Linus122/TelegramChat/Data.java +++ b/src/main/java/de/Linus122/TelegramChat/Data.java @@ -9,12 +9,12 @@ public class Data { private String token = ""; // User ID : Player ID - private HashMap linkedChats = new HashMap(); + private HashMap linkedChats = new HashMap(); // Token : Player ID private HashMap linkCodes = new HashMap(); - public List chat_ids = new ArrayList(); + public List chat_ids = new ArrayList(); private boolean firstUse = true; @@ -28,11 +28,11 @@ public class Data { } // chats - public HashMap getLinkedChats() { + public HashMap getLinkedChats() { return linkedChats; } - public void setLinkedChats(HashMap linkedChats) { + public void setLinkedChats(HashMap linkedChats) { this.linkedChats = linkedChats; } @@ -44,11 +44,11 @@ public class Data { this.linkCodes = linkCodes; } - public List getIds() { + public List getIds() { return chat_ids; } - public void setIds(List ids) { + public void setIds(List ids) { this.chat_ids = ids; } @@ -60,7 +60,7 @@ public class Data { this.firstUse = firstUse; } - public void addChatPlayerLink(int chatID, UUID player) { + public void addChatPlayerLink(long chatID, UUID player) { linkedChats.put(chatID, player); } @@ -76,7 +76,7 @@ public class Data { linkCodes.remove(code); } - public UUID getUUIDFromUserID(int userID) { + public UUID getUUIDFromUserID(long userID) { return linkedChats.get(userID); }