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,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;
}
}
}