Update Data.java

This commit is contained in:
iCaitlyn 2022-02-09 00:45:52 +08:00 committed by GitHub
parent 7f2ab6372f
commit 81429cd517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,12 +9,12 @@ public class Data {
private String token = "";
// User ID : Player ID
private HashMap<Integer, UUID> linkedChats = new HashMap<Integer, UUID>();
private HashMap<Long, UUID> linkedChats = new HashMap<Long, UUID>();
// Token : Player ID
private HashMap<String, UUID> linkCodes = new HashMap<String, UUID>();
public List<Integer> chat_ids = new ArrayList<Integer>();
public List<Long> chat_ids = new ArrayList<Long>();
private boolean firstUse = true;
@ -28,11 +28,11 @@ public class Data {
}
// chats
public HashMap<Integer, UUID> getLinkedChats() {
public HashMap<Long, UUID> getLinkedChats() {
return linkedChats;
}
public void setLinkedChats(HashMap<Integer, UUID> linkedChats) {
public void setLinkedChats(HashMap<Long, UUID> linkedChats) {
this.linkedChats = linkedChats;
}
@ -44,11 +44,11 @@ public class Data {
this.linkCodes = linkCodes;
}
public List<Integer> getIds() {
public List<Long> getIds() {
return chat_ids;
}
public void setIds(List<Integer> ids) {
public void setIds(List<Long> 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);
}