Solved How can I make a custom economy using vault?

Discussion in 'Plugin Development' started by thebigdolphin1, Oct 13, 2013.

Thread Status:
Not open for further replies.
  1. I have all my own methods for stuff, like getting the balance, setting it, adding it.
    How would I get this to work with Vault so that other plugins that use vault use MY economy?

    Thanks
     
  2. Offline

    Mathias Eklund

    read the api tutorial on vaults page, it tells you how to implement it.
     
  3. I read it, it either says nothing about that, or I'm not understanding how to do it.

    Anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  4. Offline

    Mrawesomecookie

    Try quoiting him. It comes up on his alerts.
     
  5. Offline

    Syd

    The authors of Vault need to add your plugin to Vault.

    So, you may should ask the Vault staff. ;)
     
  6. Syd is there no way to do it by extending classes or anything?
     
  7. Offline

    Syd

    thebigdolphin1
    Not unless you want to distrbute your own version of Vault. (Or maybe faking another, by Vault supported, plugin)
     
  8. Offline

    Ultimate_n00b

    Honestly? No one knows?

    All you have to do, is make a pull request to vault with your methods included.
     
  9. Ultimate_n00b Its for my server only, as a custom plugin.
    Thats why I cant.
     
  10. Offline

    Ultimate_n00b

    Custom version of vault then. Again, fork, add methods, just don't make a pull request.
     
  11. Ultimate_n00b
    Any idea how to do this? :L
    I've never done class editing/adding on to apis and stuff
     
  12. Offline

    Ultimate_n00b

    • Make a github account
    • Go to vault's page, then click fork
    • Download the github client/a git client
    • Sync the data to a local folder
    • Import Vault from that folder into your IDE
    • Look at how different economy plugins set themselves up
    • Do the same
    • Compile
     
  13. Ultimate_n00b

    Isnt there a way to do it from extending a class or something from my plugin?
    That seems like a lot of work for just adding an economy..
     
  14. Offline

    Ultimate_n00b

    Hmm.. let me check.

    You could use reflection, as Vault's hookEconomy method is private.

    A little help, Sleaker ?

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

Share This Page