1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 12:31:26 +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 4ea629628d
commit 1164bbd90d

View File

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