iConomy 6, How to get account

Discussion in 'Plugin Development' started by AussieBacom, Dec 2, 2011.

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

    AussieBacom

    I have a problem transitioning from iConomy5 to 6.

    iConomy.getAccount(player.getName())

    How is this method done in iConomy 6?
     
  2. Offline

    Daniel Heppner

    I suggest using Vault to manage economy stuff.
     
    desht likes this.
  3. Offline

    AussieBacom

    anyone got any experience with ico6?
     
  4. Account account = new Accounts().get("playername");
     
    AussieBacom likes this.
  5. Offline

    AussieBacom

    Thanks, worked a charm.
     
  6. Offline

    ibhh

    An other question:
    How can I set the balance?
     
  7. int Balance = new Accounts().get("playername").getHoldings().getBalance();

    Or something like that
     
  8. Offline

    skore87

    This thread helped me, and thanks to all that contributed. However rob, that's a Double, not Integer. =P
     
Thread Status:
Not open for further replies.

Share This Page