How do i use Vault?

Discussion in 'Plugin Development' started by Izz9, Feb 14, 2012.

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

    I dont know how to work it, i just downloaded and installed in my Bukkit Server. I looked around all over the forums. i couldnt find help, im not good with copying and pasting stuff. like the Commands, if someone could walk me through this, i have IConomy6. i want it to cost money to use a New Plugin i have.. HELP ASAP!
    -Also, i need help with putting the right thing in the Plugins.yml File... im lost lol, im new to this stuff, i googled it, i looked up on youtube. idk how to work it..
  2. Offline


    If you're trying to use the Vault API, just follow the instructions on the page you linked. I'm not sure how the Vault devs could make the examples any clearer. If you have specific questions, feel free to ask here.
  3. Offline


    i Still really dont get it, i went to the devbukkit an read... what i want to do is use Iconomy with it, so i can use other pluggins an take cash away.
  4. I think you are confused, Vault is for plugin developers to use to integrate economy and permissions into their Plugin.
  5. Offline


  6. Offline


    The vault front page tells you how to initialize Vault in your plugin, just use only the economy part if that's all you need. Here's a direct copy of the relevant code in the sample they provide. Now just call setupEconomy() in your onEnable and then you can use economy.depositPlayer to give money.

    public static Economy economy = null;
    private Boolean setupEconomy()
            RegisteredServiceProvider<Economy> economyProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
            if (economyProvider != null) {
                economy = economyProvider.getProvider();
    Edit: Also make sure you add vault to depends or softdepends in your plugin.yml.
  7. Offline


    Thats what im stuck on, where do i add ths stuff? :/ im still a nub at this stuff.
    Sadly, ima need someone to walk me through this, or make a YouTube vid of it.
  8. Offline


    I Have the Same Problem, I posted just before you.

    I have absolutely no idea how I am supposed to get a players balance from that ^^^^^^
  9. Offline


  10. Offline


  11. Offline


  12. Offline


    Vualt api has got to be the easiest api.


    add that to the command or a specific event within your code. i use the <pluginname> within my economy code becuase my economy and permissions are static.
  13. Offline


    You are mixing up plugin development and server administration. What you are talking about is done with a plugin which is coded in java. As a server admin what you can do is use plugins made by java developers to customize the configs and everything around that to get a customized experience on your server.

    If you would like to do what you have stated you have 3 options:
    • Write the plugin yourself. This includes learning java, and the Bukkit Coding API
    • Ask/Pay someone else to do it for you
    • Find an existing plugin that does this
  14. Offline


    so i have to do one of those three to make it cost something to use a diffrent Pluggin?............
  15. Offline



    I'm glad I could help you this far but you will not see any other help from me.

    **End of thread.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 24, 2016
Thread Status:
Not open for further replies.

Share This Page