diff --git a/src/main/java/me/totalfreedom/tfguilds/command/CreateGuildCommand.java b/src/main/java/me/totalfreedom/tfguilds/command/CreateGuildCommand.java index c2cbcbb..7fe0949 100644 --- a/src/main/java/me/totalfreedom/tfguilds/command/CreateGuildCommand.java +++ b/src/main/java/me/totalfreedom/tfguilds/command/CreateGuildCommand.java @@ -54,13 +54,15 @@ public class CreateGuildCommand extends GBase implements CommandExecutor } } - for (String blacklisted : GUtil.BLACKLISTED_NAMES_AND_TAGS) { if (args[0].toLowerCase().contains(blacklisted)) { - sender.sendMessage(ChatColor.RED + "You may not use that name."); - return true; + if (!plugin.tfmb.isAdmin((Player) sender)) + { + sender.sendMessage(ChatColor.RED + "You may not use that name."); + return true; + } } } @@ -68,4 +70,4 @@ public class CreateGuildCommand extends GBase implements CommandExecutor sender.sendMessage(ChatColor.GREEN + "Successfully created a guild named " + args[0]); return true; } -} +} \ No newline at end of file