DaPigGuy / PiggyCrates

A crate plugin for PocketMine-MP supporting unlimited crate types
https://piggydocs.aericio.net/PiggyCrates.html
Apache License 2.0
31 stars 41 forks source link

Added ability to reward commands to players. #22

Closed Ifera closed 6 years ago

Ifera commented 6 years ago

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.

Ifera commented 6 years ago

Further this PR provides a fix to #5

Aericio commented 6 years ago

please don’t merge yet, I need to reformat the file.

Aericio commented 6 years ago

... didnt mean to merge

DaPigGuy commented 6 years ago

👏