mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-12-23 00:15:03 +00:00
allow this for admins
This commit is contained in:
parent
20ab49ae8d
commit
5afd9b1edc
1 changed files with 6 additions and 4 deletions
|
@ -54,13 +54,15 @@ public class CreateGuildCommand extends GBase implements CommandExecutor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for (String blacklisted : GUtil.BLACKLISTED_NAMES_AND_TAGS)
|
for (String blacklisted : GUtil.BLACKLISTED_NAMES_AND_TAGS)
|
||||||
{
|
{
|
||||||
if (args[0].toLowerCase().contains(blacklisted))
|
if (args[0].toLowerCase().contains(blacklisted))
|
||||||
{
|
{
|
||||||
sender.sendMessage(ChatColor.RED + "You may not use that name.");
|
if (!plugin.tfmb.isAdmin((Player) sender))
|
||||||
return true;
|
{
|
||||||
|
sender.sendMessage(ChatColor.RED + "You may not use that name.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue