diff --git a/src/main/java/cactusServer/entities/Account.java b/src/main/java/cactusServer/entities/Account.java index 360ca81..eb2d7ae 100644 --- a/src/main/java/cactusServer/entities/Account.java +++ b/src/main/java/cactusServer/entities/Account.java @@ -43,10 +43,11 @@ token = RandomStringUtils.random(64, "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"); return token; } + public Account getAccount(String token) { - if(this.token == token) { + if (this.token == token) { return this; - }else { + } else { return null; } }