mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-15 05:33:40 +00:00
[Fix] Allow someone to change their nick to different case of the same thing
This commit is contained in:
parent
4ea629628d
commit
1164bbd90d
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ public class Commandnick extends EssentialsLoopCommand
|
||||||
final String lowerNick = FormatUtil.stripFormat(nick.toLowerCase(Locale.ENGLISH));
|
final String lowerNick = FormatUtil.stripFormat(nick.toLowerCase(Locale.ENGLISH));
|
||||||
for (final Player onlinePlayer : server.getOnlinePlayers())
|
for (final Player onlinePlayer : server.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
if (target.getBase() == onlinePlayer)
|
if (target.getBase().getName().equals(onlinePlayer.getName()))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue