![[IMG]](//proxy.spigotmc.org/e03a0c495ce315df111561986e695390d6bab8fc/68747470733a2f2f692e6962622e636f2f775a6376396451432f64657661756c746966792d6f6f2e706e67)
The goal was to make a simple economy only non-vault api plugin that uses yml for storing the data.
This is so that other plugins can hook into it instead of relying on vault.
Another goal was also to make the use case, simple and easy to utilize.
I imagine vault could be ran alongside this...but I highly recommend you don't try such unless you need to, if you don't have any other plugins that hook into vaults economy. Then it should be fine to run with vault if need be, I believe.
The management systems are separate so vault currency is not deVault related;
The API is set to recieve updates, I will be attempting to think of new things I would like to add (or is requested) and fix it up more and more over time.
Example Usage for a creating a basic economy using deVaultify v0.0.4 (SNAPSHOT 0.0.1) (Github was giving me trouble so I had to update version number)
Update: 0.0.9 This example should still work but a more update to date example can be seen by viewing my plugin deVaultEconomy which is running 0.0.9 and provides its source classes in the description. The update allows for multicurrency and a way to hookup your economies plugin to listen to deposit events so that the currency can be managed in an automated way.
Target for your pom is 0.0.8 for 0.0.9.
In your plugins POM: Make sure to include the repo and set it up in dependencies.
Code (Text):
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/partakithware/devaultify</url>
</repository
<dependency>
<groupId>com.github.partakithware</groupId>
<artifactId>devaultify</artifactId>
<version>0.0.8</version>
</dependency>
Basic Example Class for an economy using deVaultAPI:
Code (Text):
Example Class Code 0.0.4
plugin.yml example:
Code (Text):
name: deVaultEconomy
version: 0.0.1
main: com.partakith.deVaultEconomy
api-version: 1.21
depend: [deVaultify]
commands:
bal:
aliases: [balance]
description: Check your balance
permission: devault.balance
pay:
description: Pay another player
usage: /pay <player>
permission: devault.pay
deposit:
description: Admin deposit into a player's balance
usage: /deposit <player> <amount>
permission: devault.deposit
This basic example is made to get the point across. You could create more advanced setups of course. There are also updates coming that will add more features to be used.
For now, there is no docs/wiki.
Do note - many plugins use vault for a variety of reasons, this is not vault therefore if a plugin hooks into vault for the economy portion, it will not work with deVaultify instead. Plugins will need to be created to work with it or updated to use it if detected instead. This is still a quite simple system. I am not trying to get as extensive as vault. Although updates are planned.
The focus of this plugin/API is purely economy. There are updates coming that allow economy plugins using it to do more and more over time.