diff --git a/src/main/java/cactusServer/entities/Account.java b/src/main/java/cactusServer/entities/Account.java index 2e9b412..a61e81f 100644 --- a/src/main/java/cactusServer/entities/Account.java +++ b/src/main/java/cactusServer/entities/Account.java @@ -1,7 +1,10 @@ package cactusServer.entities; +import net.arnx.jsonic.JSONHint; + public class Account { - private String id,name, pass, token; + private String id,name, token,uniqueID; + @JSONHint(ignore = true)private String pass; private boolean login = false; public Account(String userID,String userName, String userPass) { @@ -51,11 +54,11 @@ return token; } - public Account getAccount(String token) { - if (this.token == token) { - return this; - } else { - return null; - } + public String getUniqueID() { + return uniqueID; + } + + public void setUniqueID(String uniqueID) { + this.uniqueID = uniqueID; } }