[Fix] Allow someone to change their nick to different case of the same thing

This commit is contained in:
Chris Ward 2013-10-19 21:45:26 +11:00 committed by KHobbits
parent 4ea629628d
commit 1164bbd90d

View File

@ -106,7 +106,7 @@ public class Commandnick extends EssentialsLoopCommand
final String lowerNick = FormatUtil.stripFormat(nick.toLowerCase(Locale.ENGLISH));
for (final Player onlinePlayer : server.getOnlinePlayers())
{
if (target.getBase() == onlinePlayer)
if (target.getBase().getName().equals(onlinePlayer.getName()))
{
continue;
}