From e8a437c285a51f5e94ab3e4aa75d5cb6ea62b211 Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Thu, 19 Mar 2015 15:44:47 -0400 Subject: [PATCH] Add missing * permissions --- src/main/java/me/blackvein/quests/QuestFactory.java | 6 +++--- src/main/java/me/blackvein/quests/Quests.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/me/blackvein/quests/QuestFactory.java b/src/main/java/me/blackvein/quests/QuestFactory.java index 2b8379c3f..bfa69edd2 100644 --- a/src/main/java/me/blackvein/quests/QuestFactory.java +++ b/src/main/java/me/blackvein/quests/QuestFactory.java @@ -111,7 +111,7 @@ public class QuestFactory implements ConversationAbandonedListener, ColorUtil { if (input.equalsIgnoreCase("1")) { - if (player.hasPermission("quests.editor.create")) { + if (player.hasPermission("quests.editor.*") || player.hasPermission("quests.editor.create")) { return new QuestNamePrompt(); } else { player.sendMessage(RED + Lang.get("questEditorNoPermsCreate")); @@ -120,7 +120,7 @@ public class QuestFactory implements ConversationAbandonedListener, ColorUtil { } else if (input.equalsIgnoreCase("2")) { - if (player.hasPermission("quests.editor.edit")) { + if (player.hasPermission("quests.editor.*") || player.hasPermission("quests.editor.edit")) { return new SelectEditPrompt(); } else { player.sendMessage(RED + Lang.get("questEditorNoPermsCreate")); @@ -129,7 +129,7 @@ public class QuestFactory implements ConversationAbandonedListener, ColorUtil { } else if (input.equalsIgnoreCase("3")) { - if (player.hasPermission("quests.editor.delete")) { + if (player.hasPermission("quests.editor.*") || player.hasPermission("quests.editor.delete")) { return new SelectDeletePrompt(); } else { player.sendMessage(RED + Lang.get("questEditorNoPermsDelete")); diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index f5f025201..8a71b4400 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -698,10 +698,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener, if (player.hasPermission("quests.journal")) { player.sendMessage(YELLOW + "/quests " + Lang.get("COMMAND_JOURNAL_HELP")); } - if (player.hasPermission("quests.editor.editor")) { + if (player.hasPermission("quests.editor.*") || player.hasPermission("quests.editor.editor")) { player.sendMessage(YELLOW + "/quests " + Lang.get("COMMAND_EDITOR_HELP")); } - if (player.hasPermission("quests.editor.events.editor")) { + if (player.hasPermission("quests.editor.*") || player.hasPermission("quests.editor.events.editor")) { player.sendMessage(YELLOW + "/quests " + Lang.get("COMMAND_EVENTS_EDITOR_HELP")); } if (player.hasPermission("quests.stats")) { @@ -718,7 +718,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener, player.sendMessage(YELLOW + "/quest " + Lang.get("COMMAND_QUESTINFO_HELP")); } - if (player.hasPermission("quests.admin")) { + if (player.hasPermission("quests.admin.*") || player.hasPermission("quests.admin")) { player.sendMessage(DARKRED + "/questadmin " + RED + Lang.get("COMMAND_QUESTADMIN_HELP")); }