Permissions are now defined in the plugin.yml

This commit is contained in:
Daniel Saukel 2015-12-29 17:02:53 +01:00
parent c38d0dfc4a
commit 41e5a05f93
9 changed files with 56 additions and 1 deletions

View File

@ -14,6 +14,7 @@ public class ChatCommand extends DCommand {
setMinArgs(0);
setMaxArgs(0);
setHelp(dMessages.getMessage(Messages.HELP_CMD_CHAT));
setPermission("dxl.chat");
setPlayerCommand(true);
}

View File

@ -16,6 +16,7 @@ public class EditCommand extends DCommand {
setMinArgs(1);
setMaxArgs(1);
setHelp(dMessages.getMessage(Messages.HELP_CMD_EDIT));
setPermission("dxl.edit");
setPlayerCommand(true);
}

View File

@ -16,6 +16,7 @@ public class EscapeCommand extends DCommand {
setMinArgs(0);
setMaxArgs(0);
setHelp(dMessages.getMessage(Messages.HELP_CMD_ESCAPE));
setPermission("dxl.escape");
setPlayerCommand(true);
}

View File

@ -16,6 +16,7 @@ public class HelpCommand extends DCommand {
setMinArgs(0);
setMaxArgs(1);
setHelp(dMessages.getMessage(Messages.HELP_CMD_HELP));
setPermission("dxl.help");
setPlayerCommand(true);
setConsoleCommand(true);
}

View File

@ -16,6 +16,7 @@ public class LeaveCommand extends DCommand {
setMinArgs(0);
setMaxArgs(0);
setHelp(dMessages.getMessage(Messages.HELP_CMD_LEAVE));
setPermission("dxl.leave");
setPlayerCommand(true);
}

View File

@ -21,6 +21,7 @@ public class ListCommand extends DCommand {
setMinArgs(0);
setMaxArgs(3);
setHelp(dMessages.getMessage(Messages.HELP_CMD_LIST));
setPermission("dxl.list");
setPlayerCommand(true);
setConsoleCommand(true);
}

View File

@ -15,6 +15,7 @@ public class LivesCommand extends DCommand {
setMinArgs(0);
setMaxArgs(1);
setHelp(dMessages.getMessage(Messages.HELP_CMD_LIVES));
setPermission("dxl.lives");
setPlayerCommand(true);
setConsoleCommand(true);
}

View File

@ -16,6 +16,7 @@ public class MainCommand extends DCommand {
public MainCommand() {
setCommand("main");
setHelp(dMessages.getMessage(Messages.HELP_CMD_MAIN));
setPermission("dxl.main");
setPlayerCommand(true);
setConsoleCommand(true);
}

View File

@ -3,9 +3,56 @@ main: io.github.dre2n.dungeonsxl.DungeonsXL
version: 0.10-SNAPSHOT
author: Frank Baumann
authors: [Frank Baumann, Milan Albrecht, Tobias Schmitz, Daniel Saukel]
website: http://dre2n.github.io
website: https://dre2n.github.io
softdepend: [Vault, MythicMobs, CommandsXL]
commands:
dungeonsxl:
description: Reference command for DungeonsXL.
aliases: [dxl,dungeon]
permissions:
dxl.break:
default: op
dxl.chat:
default: true
dxl.chatspy:
default: op
dxl.create:
default: op
dxl.edit:
default: op
dxl.escape:
default: true
dxl.help:
default: true
dxl.invite:
default: op
dxl.leave:
default: true
dxl.list:
default: true
dxl.lives:
default: true
dxl.main:
default: true
dxl.msg:
default: op
dxl.play:
default: op
dxl.portal:
default: op
dxl.reload:
default: op
dxl.save:
default: op
dxl.test:
default: op
dxl.uninvite:
default: op
dxl.ignoretimelimit:
default: op
dxl.sign:
default: op
dxl.bypass:
default: op
dxl.cmdedit:
default: op