This PR is tested.
Further as the title suggests the crate can now reward player with a command if the command: key is set in the crates.yml. The %PLAYER% if set would be replaced by the players name and the command would be executed from console. It is executed from console because if the player (i.e. the owner of a server) wants to reward the player (i.e. the one using the crate) with a rank e.g. setgroup %PLAYER% Mystery then that command needs op status or it has to be run from console.
This PR is tested.
Further as the title suggests the crate can now reward player with a command if the
command:
key is set in thecrates.yml
. The%PLAYER%
if set would be replaced by the players name and the command would be executed fromconsole
. It is executed from console because if the player (i.e. the owner of a server) wants to reward the player (i.e. the one using the crate) with a rank e.g.setgroup %PLAYER% Mystery
then that command needsop
status or it has to be run from console.