From 1164bbd90d031a4950a19556229fe3b9d3976f93 Mon Sep 17 00:00:00 2001 From: Chris Ward Date: Sat, 19 Oct 2013 21:45:26 +1100 Subject: [Fix] Allow someone to change their nick to different case of the same thing --- Essentials/src/com/earth2me/essentials/commands/Commandnick.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandnick.java b/Essentials/src/com/earth2me/essentials/commands/Commandnick.java index 0a5665b33..94528af6f 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandnick.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandnick.java @@ -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; } -- cgit v1.2.3