1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-15 02:59:06 +02:00

[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 89c4abf218
commit acea1cd14f

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;
}