Fix for ranks not applying.
This commit is contained in:
parent
5bb91f4167
commit
a6cf1309ff
@ -208,6 +208,12 @@ public class CoreClientManager extends MiniPlugin
|
|||||||
if (uuid == null)
|
if (uuid == null)
|
||||||
uuid = UUIDFetcher.getUUIDOf(playerName);
|
uuid = UUIDFetcher.getUUIDOf(playerName);
|
||||||
|
|
||||||
|
if (uuid == null)
|
||||||
|
{
|
||||||
|
System.out.println("ERROR uuid is null. Can't load client by name.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
String response = _repository.getClientByUUID(uuid);
|
String response = _repository.getClientByUUID(uuid);
|
||||||
token = gson.fromJson(response, ClientToken.class);
|
token = gson.fromJson(response, ClientToken.class);
|
||||||
|
|
||||||
|
@ -725,7 +725,7 @@
|
|||||||
if (account == null)
|
if (account == null)
|
||||||
return "ALL";
|
return "ALL";
|
||||||
|
|
||||||
if (account.Rank.Name == "ADMIN" || account.Rank.Name == "OWNER" || account.Rank.Name == "DEVELOPER" || account.Rank.Name == "YOUTUBE")
|
if (account.Rank.Name == "LT" || account.Rank.Name == "OWNER")
|
||||||
return account.Rank.Name;
|
return account.Rank.Name;
|
||||||
|
|
||||||
if (rank == null)
|
if (rank == null)
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user