This update features a often requested feature.
You can make the process of user getting perks more easy, the plugin received the feature to interact with vault and your economy plugin to make it able for player to buy perks with /perk buy <Identifier>.
To specify a price you need to add a line to the perks.yml file with the name Price (EXAMPLE):
Code (YAML):
Telekinesis:
Price
: 35.0
Display-Name
: '&5&lTelekinesis Perk'
Description
:
- '&7&oActivating this perk will grant the player the ability'
- '&7&oto teleport mined items directly into the players inventory.'
Permission
: 'advancedperks.use.telekinesis'Telekinesis:
Display-Name
: '&5&lTelekinesis Perk'
Description
:
- '&7&oActivating this perk will grant the player the ability'
- '&7&oto teleport mined items directly into the players inventory.'
Permission
: 'advancedperks.use.telekinesis'
If you are upgrading from a lower version be aware of two things.
First the database schema has changed this update and will most likely change in another update in the near future.
You dont need to do anything but saved perks will not be transferred to this version of the plugin.
And second you need to add the following lines to your message.yml file:
Code (YAML):
Command:
Buy:
No-Eco-Support
: '<prefix> &cThe plugin is missing either an economy plugin or vault to use this feature.'
Perk-Not-Found
: '<prefix> &cThe perk <perk> was either misspelled or doesnt exist.'
Success
: '<prefix> &7You &asuccessfully &7bought the perk <perk>.'
Error
: '<prefix> &cThere was an error while buying the perk <perk> contact the administrator of the server for further information.'
Already-Unlocked
: '<prefix> &cYou already have that perk unlocked.'
Not-Enough-Money
: '<prefix> &cYou dont have enough money for that perk.'
Cannot-Be-Purchased
: '<prefix> &cThat perk cannot be purchased.'