diff options
author | Chris Ward <chris@chrisgward.com> | 2013-10-19 21:45:26 +1100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-10-19 12:19:40 +0100 |
commit | 2a02a67ff0088808740bf748e258949980fd63b6 (patch) | |
tree | 8834d1975d7434cb0b69332cf712708ad0bf83f5 | |
parent | 200948bdd5901a0d6a521bcf422900474a7023f0 (diff) | |
download | Essentials-2a02a67ff0088808740bf748e258949980fd63b6.tar Essentials-2a02a67ff0088808740bf748e258949980fd63b6.tar.gz Essentials-2a02a67ff0088808740bf748e258949980fd63b6.tar.lz Essentials-2a02a67ff0088808740bf748e258949980fd63b6.tar.xz Essentials-2a02a67ff0088808740bf748e258949980fd63b6.zip |
[Fix] Allow someone to change their nick to different case of the same thing
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandnick.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |