Skip to content

Rewards

Ben edited this page Nov 4, 2020 · 25 revisions

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

You can only do one of the following:

Rewards are defined usually under the Rewards Section (Some cases it is different, i.e. FirstVote, EverySiteReward, etc):

Rewards:

Directly defined rewards (Recommended):

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 just list commands, like so:

/ is required for it to execute commands in this case only

Rewards:
- /say %player%

Or you can either list rewards files (Files located in plugins/PLUGIN/Rewards), like so:

Rewards:
- 'RewardFile1'
- 'RewardFile2'

Or have a reward file, like so:

Rewards: 'RewardFile1'

Placeholders:

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

Two different examples doing the same thing (Directly defined):

Rewards:
  Commands:
  - 'command here'

Same as this (Reward listed, with reward file below):

Rewards:
- command

(Reward folder)/command.yml:

  Commands:
  - 'command here'

API can be found here.

Clone this wiki locally