Tweaks to essentials interface commands.

This commit is contained in:
StevenLawson
2013-09-24 20:32:04 -04:00
parent 01807d1f0f
commit f49c4568b2
5 changed files with 8 additions and 8 deletions

View File

@ -47,7 +47,7 @@ public class Command_colorme extends TFM_Command
return true;
}
final String newNick = color + ChatColor.stripColor(sender_p.getDisplayName()) + ChatColor.WHITE;
final String newNick = color + ChatColor.stripColor(sender_p.getDisplayName()).trim() + ChatColor.WHITE;
TFM_EssentialsBridge.getInstance().setNickname(sender.getName(), newNick);

View File

@ -46,7 +46,7 @@ public class Command_nicknyan extends TFM_Command
{
continue;
}
if (player.getName().equalsIgnoreCase(nickPlain) || ChatColor.stripColor(player.getDisplayName()).equalsIgnoreCase(nickPlain))
if (player.getName().equalsIgnoreCase(nickPlain) || ChatColor.stripColor(player.getDisplayName()).trim().equalsIgnoreCase(nickPlain))
{
playerMsg("That nickname is already in use.");
return true;