Add /ma addreward command.

This command takes an arena player and a Thing as input. The Thing is
parsed in the same way as all other rewards are parsed, so it supports
the new `all()` and `random()` functions and the `nothing` keyword.

The "target audience" of the command is mainly scripts. It opens up the
possibility of hooking into MobArena's rewards from command blocks or
other plugins, but with very low coupling.

Closes #643
This commit is contained in:
Andreas Troelsen
2020-09-19 10:32:03 +02:00
parent 3b132d28dd
commit dafae0cf07
4 changed files with 98 additions and 0 deletions
+4
View File
@@ -46,6 +46,7 @@ permissions:
mobarena.admin.restore: true
mobarena.admin.force: true
mobarena.admin.teleport: true
mobarena.admin.addreward: true
mobarena.admin.enable:
description: Enable and disable MobArena and/or arenas.
default: false
@@ -61,6 +62,9 @@ permissions:
mobarena.admin.teleport:
description: Immune to teleport blocking rules.
default: false
mobarena.admin.addreward:
description: Add rewards to an arena player's reward list.
default: false
mobarena.setup:
description: Gives access to all setup commands