Fix for ranks not applying.

This commit is contained in:
Jonathan Williams 2015-05-13 14:33:31 -07:00
parent 5bb91f4167
commit a6cf1309ff
3 changed files with 229 additions and 223 deletions

View File

@ -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);

View File

@ -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