Skip to content

Rewards

Ben edited this page Oct 23, 2017 · 25 revisions

Rewards are defined usually under the Rewards Section (Some cases it is different), like so:

Rewards:

Directly defined the rewards (Recommended, works in nearly every place, some exceptions in reward files, e.g. ChoiceRewards), like so:

Rewards:
  Money: 100
  Commands:
  - 'say %player%'
  # Anything that reward files can do can be done here
  # This auto converts into a reward file automatically and that is what the player gets
  # Items, etc
  # See ExampleBasic or ExamapleAdvanced

Or you can either list rewards files, like so:

Rewards:
- 'RewardFile1'
- 'RewardFile2'

Or have a reward file, like so:

Rewards: 'RewardFile1'

For everything that reward files can do can be seen here.

In newer versions you can have placeholders, couple of examples:

%player% = Player name
%date% = Date of execution
%money% = Money player got (With random number support)
%exp% = Exp player got (With random number support)

API can be found here.

Two different examples doing the same thing:

Rewards:
  Commands:
  - 'command here'

Same as this:

Rewards:
- command

(Reward folder)/command.yml:

  Commands:
  - 'command here'

Clone this wiki locally