PDEK/Economy Kit
Economy Kit
The Economy kit provides interaction with the players balance, it's not a economy plugin core, but is a "increment", it work with xconomy for example.
To use this kit, you can make a class extends EconomyHandler, or call the funcion directly with "EconomyHandler."
To use this kit you need have vault in your server
This kit have 4 functions:
- setPlayerBalance(OfflinePlayer player, double money)
- getPlayerBalance(OfflinePlayer player)
- addMoneyToPlayer(OfflinePlayer player, double money)
- removeMoneyPlayer(OfflinePlayer player, double money)
The setPlayerBalance set the player money to a value
getPlayerBalance gets the current player money
addMoneyToPlayer adds money to the current player money
removeMoneyPlayer remove money of the current player money

In this example the player money has reduced in 1564.5 on use the command "removemoney"

And in this example, the money of player increase in 1564.5 on use the "addmoney" command
Comments