Making Vault hook into a my Economy Plugin

Discussion in 'Plugin Development' started by McCastleWars, Feb 8, 2013.

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

    McCastleWars

    I've looked around. And I can't seem to find a way to make vault recognize my economy as one. In my logs I see it hooks it essentials. But I don't want to use essentials economy for my plugin. I've created one That I can update whenever I need to and add new features when I need em. For my own use. In this posts I dont want you telling me that I should try some random economy plugin. I got my own I wanna know how to make vault recognize it. And make it so that other plugins that hook into vaults api can use the money from that.
     
  2. My best friend PogoStick29 has a tutorial on youtube, very helpful.
     
  3. Offline

    McCastleWars

    What this looks like to me. Is Hes installing vault support to his plugin. Not adding vault support to his economy plugin. I want it so if I use a globalshop plugin or whatev. It tells vault to find an economy plugin. and vault hooks that globalshop plugin to my economy plugin. So whenever someone buys something from the globalshop plugin it removes money from my economy plugin
     
  4. Offline

    chasechocolate

  5. Offline

    PogoStick29

    That tutorial teaches you how to charge players money for running a command. It hooks into Vault so the charge goes through whatever economy the server has.
     
  6. Offline

    beastman3226

    Create all your functions and what not and create a class similar to this, of course refactoring so that each method does what it needs to. Send it to Sleaker and viola! You are done:
    Code:java
    1. public class Economy_<Pluginname> extends Economy {
    2. //your IDE should do the rest if not look at this example [url]https://github.com/MilkBowl/Vault/blob/master/src/net/milkbowl/vault/economy/plugins/Economy_iConomy6.java[/url]
    3. }
     
    KingFaris11 likes this.
  7. Offline

    waremanu

    I am trying to create my own economy plugin, I just want it to work with Vault.
     
  8. Offline

    Goblom

  9. Offline

    fireblast709

    Skye likes this.
  10. Offline

    Skye

    This is pretty much the only way now because Sleaker no longer accepts commits for new plugins. It's better that way anyway, 'cause Vault would balloon in size over time.

    McCastleWars You'll have to implement Economy and register it using the above method.
     
Thread Status:
Not open for further replies.

Share This Page