Add mobarena.admin.errors permission.

Introduces a new permission for "admins" that can be used to increase
visibility of errors caught by the plugin. Server owners may not want
_all_ online players to see these types of messages, so the permission
gives error handlers a way to filter the list of online players before
sending the error message.
This commit is contained in:
Andreas Troelsen 2023-11-03 22:47:19 +01:00
parent feb257213c
commit 12314f476c
2 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,7 @@ These changes will (most likely) be included in the next version.
### Added
- Support for chest references in item syntax. The new `inv` syntax allows for referencing container indices in the config-file. This should help bridge the gap between class chests and various other parts of the config-file, such as rewards and upgrade waves.
- Support for saved items. The new `/ma save-item` command can be used to save the currently held item to disk, which allows it to be used in various places in the config-file. This should help bridge the gap between the config-file and class chests for config-file centric setups.
- New permission `mobarena.admin.errors` for better error visibility. Players with this permission will get a message if an arena encounters an error.
### Fixed
- Explosion damage caused by Exploding Sheep now correctly counts as monster damage. This means that the explosions only affect other mobs if the per-arena setting `monster-infight` is set to `true`.

View File

@ -47,6 +47,7 @@ permissions:
mobarena.admin.force: true
mobarena.admin.teleport: true
mobarena.admin.addreward: true
mobarena.admin.errors: true
mobarena.admin.enable:
description: Enable and disable MobArena and/or arenas.
default: false
@ -65,6 +66,9 @@ permissions:
mobarena.admin.addreward:
description: Add rewards to an arena player's reward list.
default: false
mobarena.admin.errors:
description: Get notified when an arena encounters errors.
default: false
mobarena.setup:
description: Gives access to all setup commands