forked from instance01/MinigamesAPI
-
Notifications
You must be signed in to change notification settings - Fork 15
Permissions
Martin Eisengardt edited this page Jul 16, 2017
·
5 revisions
Permission path | Useful for | old path | Description |
---|---|---|---|
ancient.core.kits.* | Players | ancient.kits.* | Permissions for the kits with given name. See details below. |
ancient.core.guns.* | Players | ancient.guns.* | Permissions for the guns with given name. NOTICE: Existing installations of the games read the permission from guns.yml from property "config.guns.[Name].permission_node". In future versions the behaviour of this property will change. See https://github.com/MysticCity/MinigamesAPI/issues/87 for details. |
ancient.core.shop_items.* | Players | ancient.shop_item.* | Permissions for the shop items with given name. NOTICE: Existing installations of the games read the permission from shop.yml from property "config.shop_items.[Name].permission_node". In future versions the behaviour of this property will change. See https://github.com/MysticCity/MinigamesAPI/issues/89 for details. |
ancient.[game].* | - | [game].* | The permissions for the game with given name. |
ancient.[game].arenas.[arena].* | - | arenas.[arena] | The permissions for the given game arena. |
ancient.core.sign | Admins | mgapi.sign | Permission to place arena signs |
ancient.core.start | Support/Players | mgapi.sign | Permission to force arena match start (/start command) |
ancient.core.party | Players | mgapi.sign | Permission for the party command (/party command) |
Permission | Useful for | Description |
---|---|---|
ancient.[game].reload | Admins/Support | Reload game configuration |
ancient.[game].adminjoin | Admins/Support | Force players to join an arena |
ancient.[game].kickplayer | Admins/Support | Kicks a Player off arena |
ancient.[game].setup | Admins | Game/ arena setup |
ancient.[game].reset | Admins/Support | Reset an arena |
ancient.[game].adminkit | Admins/Support | Force players to use given kit |
ancient.[game].adminspectate | Admins/Support | Force players to lose a game/ join spectation mode |
ancient.[game].start | Admins/Support | Start an arena |
ancient.[game].stop | Admins/Support | Stop a match |
ancient.[game].spectate | Players | Allows players to join spectation mode even if they are not part of the running match |
Permission | Useful for | Description |
---|---|---|
ancient.[game].arenas.[arena].vip | Players | Player with this right is a vip on given Arena. In future versions the behaviour of this property will change. See https://github.com/MysticCity/MinigamesAPI/issues/90 for details. |
You can customize the permission strings. This can be useful if the permission strings conflicts with other minigame libraries.
Config path | Default | Description |
---|---|---|
config.permissions_prefix | ancient.core | Prefix for all core permissions |
config.permissions_kits_prefix | ancient.core.kits | Prefix for the core kit permissions |
config.permissions_gun_prefix | ancient.core.guns | Prefix for the core gun permissions |
config.permissions_shop_prefix | ancient.core.shopitems | Prefix for the core shop item permissions |
config.permissions_game_prefix | ancient. | Prefix to build the game and arena permissions |
The permissions are always read from classes.yml. The entries in config.yml only are defaults.
If the kit in classes.yml sets "requires_permission" to false everyone is able to select the kit.
Existing installations of the games read the permission from classes.yml from property "config.kits.[Name].permission_node". In future versions the behaviour of this property will change. See https://github.com/MysticCity/MinigamesAPI/issues/88 for details.