implement iConomy

Discussion in 'Plugin Development' started by Fin999888777, Oct 6, 2012.

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

    Fin999888777

    Hello there,
    I am getting crazy, I've been using google for hours without finding something that works. My problem isn't too complecated, I just want to getaccess to the methods of Iconomy. I already imported "import com.iCo6.*;" and just tried it with an variable: "public static com.iCo6.iConomy iConomy = null;" which didn't work well because I can do all the standart stuff with the class but I don't have the possibility to use the methods. Then I tried something completly crazy with:
    "private boolean setupiConomy()
    {
    RegisteredServiceProvider<iConomy> iConomyProvider = getServer().getServicesManager().getRegistration(com.iCo6.iConomy.class);
    if (iConomyProvider != null) {
    iConomy = iConomyProvider.getProvider();
    }

    return (iConomy != null);
    }"

    which actually does nothing :D

    Please don't get confused by my tries to get this work. I just hope someone can show me a way to use the iConomy methods in my plugin :D

    Be nice to me, my English isn't that good and I just started programming plugins :)
     
  2. Offline

    Devil0s

    What kind of plugin do you want to develop?
     
  3. Offline

    Lolmewn

    Might want to implement Vault instead, iConomy is outdated and not being updated anymore. Besides, Vault supports iConomy too.
     
    kroltan and Fin999888777 like this.
  4. Offline

    Devil0s

    That's my first thought too but if he wants to develop an iConomy improvement or a only iConomy feature Vault would be very useless.
    That's only a good way if he wants to make a plugin to improve the most populars economy plugins .
     
    Fin999888777 likes this.
  5. Offline

    Fin999888777

    Yeah I already tried valut, but is it possible to make shops with valut (sry I don't want to look for it right now)?? and I have the problem that valut only gives parts of the commands I need
     
  6. Offline

    Devil0s

    IT CALLS VAULT>>>>> V.A.U.L.T.. :D :D xDD

    I dont know. I never used Vault yet.... But I will. :D
     
  7. Offline

    kroltan

    The shop system is not present, you'd have to build it, but it does support detracting money from players, and allows other economy plugins besides iConomy.
     
    Fin999888777 likes this.
  8. Offline

    Fin999888777

    Yeah it somehow sounds good, thank u. But I have got the problem that there are some methodes missing that I would need such as "getAccount" and so on, that I were able to use with the old iConomy builds
     
Thread Status:
Not open for further replies.

Share This Page