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:

  1. setPlayerBalance(OfflinePlayer player, double money)
  2. getPlayerBalance(OfflinePlayer player)
  3. addMoneyToPlayer(OfflinePlayer player, double money)
  4. 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

Posts Quoted:
Reply
Clear All Quotes