From 5743352d1f41d6c097b80e9ac666da474295fcfb Mon Sep 17 00:00:00 2001 From: snake Date: Mon, 19 Dec 2022 00:31:17 +0900 Subject: Add command permissions --- bukkit/src/main/resources/plugin.yml | 22 ++++++++++++++++++++-- .../src/main/resources/resources/bukkit/config.yml | 1 + 2 files changed, 21 insertions(+), 2 deletions(-) (limited to 'bukkit/src/main/resources') diff --git a/bukkit/src/main/resources/plugin.yml b/bukkit/src/main/resources/plugin.yml index b9e47d50..0ec4ca48 100644 --- a/bukkit/src/main/resources/plugin.yml +++ b/bukkit/src/main/resources/plugin.yml @@ -22,9 +22,27 @@ permissions: quests.command: description: Permission for main command default: true + quests.command.category: + description: Permission to execute /q category + default: op + quests.command.started: + description: Permission to execute /q started + default: op + quests.command.quest: + description: Permission to execute /q quest + default: op + quests.command.start: + description: Permission to execute /q start + default: op + quests.command.track: + description: Permission to execute /q track + default: op + quests.command.cancel: + description: Permission to execute /q cancel + default: op quests.command.random: description: Permission to execute /q random - default: true + default: op quests.admin: - description: Permission for the admin commands + description: Permission for the admin commands default: op diff --git a/bukkit/src/main/resources/resources/bukkit/config.yml b/bukkit/src/main/resources/resources/bukkit/config.yml index e51db8eb..9d729472 100644 --- a/bukkit/src/main/resources/resources/bukkit/config.yml +++ b/bukkit/src/main/resources/resources/bukkit/config.yml @@ -330,6 +330,7 @@ messages: quest-updater: "&cQuests > &7A new version &c{newver} &7was found on Spigot (your version: &c{oldver}&7). Please update me! <3 - Link: {link}" command-data-not-loaded: "&4Your quests progress file has not been loaded; you cannot use quests. If this issue persists, contact an admin." command-sub-doesntexist: "&7The specified subcommand '&c{sub}' &7does not exist." + command-no-permission: "&7You do not have permission to use this command." command-quest-cancel-specify: "&7You must specify a quest to cancel." command-quest-start-doesntexist: "&7The specified quest '&c{quest}&7' does not exist." command-quest-general-doesntexist: "&7The specified quest '&c{quest}&7' does not exist." -- cgit v1.2.3-70-g09d2