Remove duplicate permission check

This commit is contained in:
PikaMug 2020-02-03 05:51:24 -05:00
parent dcdeeeb627
commit 26c39ec186

View File

@ -800,7 +800,7 @@ public class CmdExecutor implements CommandExecutor {
boolean translateSubCommands = plugin.getSettings().canTranslateSubCommands();
cs.sendMessage(ChatColor.GOLD + Lang.get("questHelpTitle"));
cs.sendMessage(ChatColor.YELLOW + "/quests " + Lang.get("questDisplayHelp"));
if (cs.hasPermission("quests.list") || cs.hasPermission("quests.list")) {
if (cs.hasPermission("quests.list")) {
cs.sendMessage(ChatColor.YELLOW + "/quests "+ Lang.get("COMMAND_LIST_HELP")
.replace("<command>", ChatColor.GOLD + (translateSubCommands ? Lang.get("COMMAND_LIST")
: "list") + ChatColor.YELLOW));