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 (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"));

View File

@ -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"));
}