Add missing * permissions

This commit is contained in:
HappyPikachu 2015-03-19 15:44:47 -04:00
parent dfcc339e1d
commit e8a437c285
2 changed files with 6 additions and 6 deletions

View File

@ -111,7 +111,7 @@ public class QuestFactory implements ConversationAbandonedListener, ColorUtil {
if (input.equalsIgnoreCase("1")) { if (input.equalsIgnoreCase("1")) {
if (player.hasPermission("quests.editor.create")) { if (player.hasPermission("quests.editor.*") || player.hasPermission("quests.editor.create")) {
return new QuestNamePrompt(); return new QuestNamePrompt();
} else { } else {
player.sendMessage(RED + Lang.get("questEditorNoPermsCreate")); player.sendMessage(RED + Lang.get("questEditorNoPermsCreate"));
@ -120,7 +120,7 @@ public class QuestFactory implements ConversationAbandonedListener, ColorUtil {
} else if (input.equalsIgnoreCase("2")) { } else if (input.equalsIgnoreCase("2")) {
if (player.hasPermission("quests.editor.edit")) { if (player.hasPermission("quests.editor.*") || player.hasPermission("quests.editor.edit")) {
return new SelectEditPrompt(); return new SelectEditPrompt();
} else { } else {
player.sendMessage(RED + Lang.get("questEditorNoPermsCreate")); player.sendMessage(RED + Lang.get("questEditorNoPermsCreate"));
@ -129,7 +129,7 @@ public class QuestFactory implements ConversationAbandonedListener, ColorUtil {
} else if (input.equalsIgnoreCase("3")) { } else if (input.equalsIgnoreCase("3")) {
if (player.hasPermission("quests.editor.delete")) { if (player.hasPermission("quests.editor.*") || player.hasPermission("quests.editor.delete")) {
return new SelectDeletePrompt(); return new SelectDeletePrompt();
} else { } else {
player.sendMessage(RED + Lang.get("questEditorNoPermsDelete")); player.sendMessage(RED + Lang.get("questEditorNoPermsDelete"));

View File

@ -698,10 +698,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
if (player.hasPermission("quests.journal")) { if (player.hasPermission("quests.journal")) {
player.sendMessage(YELLOW + "/quests " + Lang.get("COMMAND_JOURNAL_HELP")); 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")); 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")); player.sendMessage(YELLOW + "/quests " + Lang.get("COMMAND_EVENTS_EDITOR_HELP"));
} }
if (player.hasPermission("quests.stats")) { 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")); 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")); player.sendMessage(DARKRED + "/questadmin " + RED + Lang.get("COMMAND_QUESTADMIN_HELP"));
} }