diff --git a/src/main/java/cactusServer/entities/Account.java b/src/main/java/cactusServer/entities/Account.java index 2d5319c..8f4c2f5 100644 --- a/src/main/java/cactusServer/entities/Account.java +++ b/src/main/java/cactusServer/entities/Account.java @@ -1,7 +1,7 @@ package cactusServer.entities; import cactusServer.utils.RandomStringGenerator; -import net.arnx.jsonic.JSONHint; +import net.arnx.jsonic.*; public class Account { private String id, name, token; @@ -10,10 +10,12 @@ @JSONHint(ignore = true) private boolean login = false; - public Account(String userID, String userName, String userPass) { + public Account(String userID, String userName, String userPass, String uniqueID) { setId(userID); setName(userName); setPass(userPass); + setUniqueID(uniqueID); + formToken(); } public String getId() {