allow this for admins

This commit is contained in:
speedxx 2020-06-19 20:22:35 -04:00
parent 20ab49ae8d
commit 5afd9b1edc

View file

@ -54,15 +54,17 @@ public class CreateGuildCommand extends GBase implements CommandExecutor
}
}
for (String blacklisted : GUtil.BLACKLISTED_NAMES_AND_TAGS)
{
if (args[0].toLowerCase().contains(blacklisted))
{
if (!plugin.tfmb.isAdmin((Player) sender))
{
sender.sendMessage(ChatColor.RED + "You may not use that name.");
return true;
}
}
}
GUtil.createGuild(sender, args[0]);
sender.sendMessage(ChatColor.GREEN + "Successfully created a guild named " + args[0]);