Solved Checking players in game balance

Discussion in 'Spigot Plugin Development' started by TheMasteredPanda, May 18, 2016.

  1. Hello,

    having trouble figuring out how to check a players in game balance, am I able to get an example on how to check a players in game balance?

    Thanks,
    Panda ;)!
     
  2. You will need to create a vault hook.
     
  3. Got that, I mean what's the method to check a players balance? only one money related that I can use is getMoney(), but according to eclipse, that's wrong?
     
  4. "thats wrong" - Eclipse does not have the error message "thats wrong" so we cannot help you with made-up error messages.

    Gesendet von meinem Nexus 5 mit Tapatalk
     
    • Funny Funny x 1
  5. you can create your own method getMoney() using the vault hook if I were you I'm going to start reading their link given and examine how to do that.

    if I am not mistaken its like

    Code (Java):
    public int getMoney(Player player) {
    return player.balance;
    }
     
  6. Imported the wrong package, fixed now.

    Ty.