mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
[Fix] Allow someone to change their nick to different case of the same thing
This commit is contained in:
parent
4ea629628d
commit
1164bbd90d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user