From 6afb10311c4686d4820c430f81c2a1e69b6e4e02 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 6 Dec 2018 02:04:13 -0500 Subject: [PATCH] Change permissions for Events Editor, part 2 --- src/main/java/me/blackvein/quests/Quests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index bf2e2aa91..9eae6d6fb 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -658,7 +658,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener player.sendMessage(ChatColor.YELLOW + "/quests " + Lang.get(player, "COMMAND_EDITOR_HELP") .replace("", translateSubCommands ? Lang.get(player, "COMMAND_EDITOR") : "editor")); } - if (player.hasPermission("quests.editor.*") || player.hasPermission("quests.editor.events.editor")) { + if (player.hasPermission("quests.events.*") || player.hasPermission("quests.events.editor")) { player.sendMessage(ChatColor.YELLOW + "/quests " + Lang.get(player, "COMMAND_EVENTS_EDITOR_HELP") .replace("", translateSubCommands ? Lang.get(player, "COMMAND_EVENTS") : "events")); } @@ -1348,7 +1348,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener } private boolean questsEvents(final CommandSender cs) { - if (cs.hasPermission("quests.editor.*") || cs.hasPermission("quests.editor.events.editor")) { + if (cs.hasPermission("quests.editor.*") || cs.hasPermission("quests.events.editor")) { eventFactory.convoCreator.buildConversation((Conversable) cs).begin(); } else { cs.sendMessage(ChatColor.RED + Lang.get("NoPermission"));