mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-04 23:37:49 +01:00
Add permissions for quests start & stop
This commit is contained in:
parent
97ee33e46e
commit
05b1122d66
@ -55,9 +55,9 @@ public class quests implements Cmd {
|
||||
if (args.length >= 1) {
|
||||
Boolean stopped = null;
|
||||
String cmd = args.length == 1 ? args[0] : args[1];
|
||||
if (cmd.equalsIgnoreCase("stop")) {
|
||||
if (cmd.equalsIgnoreCase("stop") && Jobs.hasPermission(sender, "jobs.command.admin.quests.stop", false)) {
|
||||
stopped = true;
|
||||
} else if (cmd.equalsIgnoreCase("start")) {
|
||||
} else if (cmd.equalsIgnoreCase("start") && Jobs.hasPermission(sender, "jobs.command.admin.quests.start", false)) {
|
||||
stopped = false;
|
||||
}
|
||||
|
||||
|
@ -28,6 +28,15 @@ permissions:
|
||||
jobs.use:
|
||||
description: Grants ability to use this plugin
|
||||
default: true
|
||||
jobs.command.admin.*:
|
||||
description: Grants player access to all commands
|
||||
default: false
|
||||
children:
|
||||
jobs.command.*: true
|
||||
jobs.command.admin.stats: true
|
||||
jobs.command.admin.archive: true
|
||||
jobs.command.admin.quests.stop: true
|
||||
jobs.command.admin.quests.start: true
|
||||
jobs.command.*:
|
||||
description: Grants player access to all commands
|
||||
default: false
|
||||
@ -35,8 +44,6 @@ permissions:
|
||||
jobs.command.archive: true
|
||||
jobs.command.browse: true
|
||||
jobs.command.stats: true
|
||||
jobs.command.admin.stats: true
|
||||
jobs.command.admin.archive: true
|
||||
jobs.command.archive: true
|
||||
jobs.command.join: true
|
||||
jobs.command.leave: true
|
||||
|
Loading…
Reference in New Issue
Block a user