Economy on ScoreBoard

Discussion in 'Plugin Development' started by ryr11, Jan 15, 2014.

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

    ryr11

    How would I get someone's balance (Vault) and put it on a scoreboard?
     
  2. Offline

    MrInspector

    Code:java
    1. eco.getBalance(player.getName());
     
  3. ryr11
    You can follow this tutorial (link below) to learn how to use the Scoreboard API.
    http://forums.bukkit.org/threads/tutorial-scoreboards-teams-with-the-bukkit-api.139655/

    Then, add Vault to your referenced libraries in Eclipse, or whatever IDE (if any) you are using. Hook to Vault using a method provided in its API documentation. Get the balance using economy.getBalance(String) method ('economy' being your Economy variable you should have somewhere), then display it on the scoreboard.
     
Thread Status:
Not open for further replies.

Share This Page