Added vault economy support. (optional)
You have to add a few extra lines in your language.yml and you can extend the info commands lines. (or you can regenerate the file)
Code (YAML):
money-withdraw
:
"&a%money%$ has been deducted from your account."
not-enough-money
:
"&cYou don't have enough money on your account. &7(%money%$)"
info-command
:
-
"&7&m------------------------------------"
-
" &6&l%player%'s &7informations"
-
""
- " &6» &7Invsaver Group
:
&e%group%"
- " &6» &7Saved inventories
:
&e%savedinv%"
- " &6» &7Can save
:
&e%allinv%"
- " &6» &7Can edit
:
&e%editinv%"
- " &6» &7Save price
:
&e%price%$"
-
"&7&m------------------------------------"
Also you have to complete the config file with the following:
Code (YAML):
#########################################
# Disable the economy manager for the plugin.
# If it's true, the save price for the groups won't matter.
#########################################
economy:
disable
: false
If you would like to use the new feature, you can setup each group for different inventory save pricing in the config file, for example.:
Code (YAML):
PERMISSIONS:
default:
permission
:
"invsaver.group.default"
amount
: 2
edit
: false
save-price
: 100
gold:
permission
:
"invsaver.group.gold"
amount
: 5
edit
: true
save-price
: 50
iron:
permission
:
"invsaver.group.iron"
amount
: 20
edit
: false
save-price
: 20
dragon:
permission
:
"invsaver.group.dragon"
amount
: 30
edit
: true
save-price
: 0
This also comes with a new permission: (If the player has this, then he/she won't have to play anything for the inventory save)
- invsaver.bypass.saveprice
Of course, if you have any idea how I could improve the plugin, I always welcome some feedback. 