[Solved] How to add currency to a player's balance

Discussion in 'Plugin Development' started by xboxnolifes, Jul 26, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    xboxnolifes

    How would I go to adding money to a player's balance through essentials economy.
    By this I mean though a plugin's code, not a command.
    Thanks in advanced!
     
  2. Offline

    Milkywayz

    The easiest way todo add a balance is to use vault. Vault will hook into essentials then add money to a players balance when the code is executed. Instead of hard coding for essentials you should use Vault (unless your making a plugin just for yourself and your server doesn't have vault, then you can do whatever :p)
     
  3. Offline

    xboxnolifes

    I have vault, but I looked and I couldn't figure out the code for it.

    I know how to hook into Vault and everything, I just don't know the method to add money. Also, I wasn't sure if Essentials was hooked into Vault, but I don't know why it wouldn't be.
     
  4. Offline

    Milkywayz

    Vault hooks into essentials just fine. Theres a tutorial on vaults github wiki.
     
  5. Offline

    xboxnolifes

    I found out the method. Now I need to figure out player join events.
     
Thread Status:
Not open for further replies.

Share This Page