Also check for full account name permission

This commit is contained in:
Phoenix616 2017-09-26 15:39:08 +01:00
parent 1d80edbf9b
commit e81077143e
1 changed files with 2 additions and 1 deletions

View File

@ -260,7 +260,8 @@ public class NameManager {
}
Account account = getAccountFromShortName(name);
return account != null && account.getUuid().equals(player.getUniqueId());
return account != null && (account.getUuid().equals(player.getUniqueId())
|| (!account.getName().equalsIgnoreCase(name) && Permission.otherName(player, account.getName())));
}
public static boolean isAdminShop(UUID uuid) {