mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-12 13:43:57 +01:00
Add missing * permissions
This commit is contained in:
parent
dfcc339e1d
commit
e8a437c285
@ -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"));
|
||||
|
@ -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"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user