Adding Rewards
Steps of adding a new reward:
Navigate to the configuration file of the zone that you want to edit the rewards of. The location of the file is:
plugins/AxAFKZone/zones/name-of-zone.yml
Open the file and find the rewards section
For the rewards, we use a YAML list, it might be confusing at first, but it is acutally quite simple.
The rewards section has different elements, all the elements start with a "-" and all the indented text are part of that section.
To add a new command reward, you want to add this to the rewards section:
Of course, you can customize it, there is a chance, display name and commands section.
Also note that you can add multiple commands if you want, because that is another list within a list! Here is a multi command example:
It is important through, that this is a SINGLE reward, all of these commands will be run at once, you will need to add multiple rewards if you want to do these seperately, for example:
Next, let's add an item reward, it is pretty much the same process, except that items can use our Item Builder
The only 2 required fields are material and amount, you can add anything else from our itembuilder, for example even complex items like:
So lets combine these examples and add them to the rewards section: