From 5afd9b1edc1dde5a103866b090cc60653e9c9f07 Mon Sep 17 00:00:00 2001 From: speedxx <43330808+speedxx@users.noreply.github.com> Date: Fri, 19 Jun 2020 20:22:35 -0400 Subject: [PATCH] allow this for admins --- .../tfguilds/command/CreateGuildCommand.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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