Admin ranks now show up before developer rank...

This commit is contained in:
Business Goose 2022-03-28 20:32:56 +01:00
parent 0203f05ad0
commit 0d53e91176
No known key found for this signature in database
GPG key ID: 77DCA801362E9645

View file

@ -103,10 +103,6 @@ public enum PlayerRank implements Comparator<PlayerRank>, Comparable<PlayerRank>
return IMPOSTOR; return IMPOSTOR;
} }
if (DEVELOPERS.contains(sender.getName()))
{
return DEVELOPER;
}
final Admin entry = AdminList.getEntryByIp(Utilities.getIp((Player) sender)); final Admin entry = AdminList.getEntryByIp(Utilities.getIp((Player) sender));
@ -134,7 +130,9 @@ public enum PlayerRank implements Comparator<PlayerRank>, Comparable<PlayerRank>
} }
else else
{ {
if (sender.isOp()) if (DEVELOPERS.contains(sender.getName())) {
return DEVELOPER;
} else if (sender.isOp())
{ {
rank = OP; rank = OP;
} }