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

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) {