Skip to content

Commit 1164bbd

Browse files
chrisgwardkhobbits
authored andcommitted
[Fix] Allow someone to change their nick to different case of the same thing
1 parent 4ea6296 commit 1164bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Essentials/src/com/earth2me/essentials/commands/Commandnick.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private boolean nickInUse(final Server server, final User target, String nick)
106106
final String lowerNick = FormatUtil.stripFormat(nick.toLowerCase(Locale.ENGLISH));
107107
for (final Player onlinePlayer : server.getOnlinePlayers())
108108
{
109-
if (target.getBase() == onlinePlayer)
109+
if (target.getBase().getName().equals(onlinePlayer.getName()))
110110
{
111111
continue;
112112
}

0 commit comments

Comments
 (0)