How do i use Vault?

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

  1. Offline

    Izz9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    http://dev.bukkit.org/server-mods/vault/
    ^^^^^^^
    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..

    This post has been edited 1 time. It was last edited by Izz9 Feb 15, 2012.
  2. Offline

    desht

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.

    This post has been edited 1 time. It was last edited by desht Feb 15, 2012.
  3. Offline

    Izz9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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. Offline

    iKeirNez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I think you are confused, Vault is for plugin developers to use to integrate economy and permissions into their Plugin.
  5. Offline

    Izz9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  6. Offline

    Morthis

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.

    Code:
    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.

    This post has been edited 1 time. It was last edited by Morthis Feb 15, 2012.
  7. Offline

    Izz9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.

    This post has been edited 1 time. It was last edited by Izz9 Feb 15, 2012.
  8. Offline

    Dexeron

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    Izz9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  10. Offline

    Dexeron

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  11. Offline

    Izz9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  12. Offline

    TopGear93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Vualt api has got to be the easiest api.

    <pluginname>.economy.playerBalance(player.getName());

    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.

    This post has been edited 1 time. It was last edited by TopGear93 Feb 15, 2012.
  13. Offline

    quaz3l

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Dexeron
    @Izz9
    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

    This post has been edited 1 time. It was last edited by quaz3l Feb 16, 2012.
  14. Offline

    Izz9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    so i have to do one of those three to make it cost something to use a diffrent Pluggin?............
  15. Offline

    quaz3l

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  16. Offline

    Izz9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    • Unacceptable behavior.
    That Couldnt be any gayer...
  17. Offline

    quaz3l

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm glad I could help you this far but you will not see any other help from me.

    **End of thread.

Share This Page