How to hook into iConomy6?

Discussion in 'Plugin Development' started by tyzoid, Sep 24, 2011.

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

    tyzoid

    I can't seem to find a tutorial for this. Can anyone please give me a link to one?
     
  2. Offline

    daemitus

    Try hooking Register instead.
     
  3. Thats even more confusing ^^

    There is one on the HUUGE PLUGIN Tutorial. But it doesnt seem to work very well.
     
  4. Offline

    kellerkindt

    can you please post a link?
     
  5. Offline

    tyzoid

    @daemitus
    I think that that would work better :)
    Thanks.
     
  6. Offline

    Taco

    One second, I'll grab some code from one of my old projects. I've worked with Iconomy6 before.

    Edit: It seems that once you import iConomy and add it to your project, you can simply reference everything statically.

    Example from a betting system:

    Code:
    Double bet = Double.parseDouble(args[2]);
             if(iConomy.hasAccount(player.getName()) && iConomy.getAccount(player.getName()).getHoldings().hasEnough(bet))
     
  7. Offline

    RTRD

    Will this help? http://ico.nexua.org/Main/API
     
  8. Offline

    tyzoid

    @RTRD
    That is iconomy5

    Anyway. I'm not really developing anything for iconomy. I convinced myself for last weekend that updating fuzzy's towny was easier than upgrading it.
     
  9. Offline

    RTRD

    oki :)
     
  10. Offline

    iffa

    It's not really that hard.
     
Thread Status:
Not open for further replies.

Share This Page