mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-04 00:46:40 +00:00
Try to improve things
This commit is contained in:
@ -98,7 +98,7 @@ public class PlexPlayer
|
||||
public Rank getRankFromString()
|
||||
{
|
||||
OfflinePlayer player = Bukkit.getOfflinePlayer(uuid);
|
||||
if (rank.isEmpty())
|
||||
if (rank.isEmpty() || !isAdminActive())
|
||||
{
|
||||
if (player.isOp())
|
||||
{
|
||||
@ -115,13 +115,6 @@ public class PlexPlayer
|
||||
}
|
||||
}
|
||||
|
||||
public Rank getRepresentedRank()
|
||||
{
|
||||
int representedLevel = this.getRankFromString().getLevel();
|
||||
if (!this.adminActive) representedLevel = Math.min(Rank.OP.getLevel(), representedLevel);
|
||||
return Rank.values()[representedLevel];
|
||||
}
|
||||
|
||||
public void loadPunishments()
|
||||
{
|
||||
if (Plex.get().getStorageType() != StorageType.MONGODB)
|
||||
|
Reference in New Issue
Block a user