summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Ward <chris@chrisgward.com>2013-10-19 21:45:26 +1100
committerKHobbits <rob@khobbits.co.uk>2013-10-19 12:19:40 +0100
commit1164bbd90d031a4950a19556229fe3b9d3976f93 (patch)
treeb56d930597641d76e112b1876d2c9c95924c37e5
parent4ea629628d950d528ad39ed60ba0d2bad4489720 (diff)
downloadEssentials-1164bbd90d031a4950a19556229fe3b9d3976f93.tar
Essentials-1164bbd90d031a4950a19556229fe3b9d3976f93.tar.gz
Essentials-1164bbd90d031a4950a19556229fe3b9d3976f93.tar.lz
Essentials-1164bbd90d031a4950a19556229fe3b9d3976f93.tar.xz
Essentials-1164bbd90d031a4950a19556229fe3b9d3976f93.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.java2
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;
}