Economy Tutorial

Economy Plugins (v1.3 and on)

To use the economy interfaces, simply implement each one (total of 3 classes) and then register your economy to MCCore. This can be done as follows:

public class MyPlugin extends JavaPlugin implements EconomyPlugin {
    public Economy getEconomy() {
        return new MyEconomy();

MyEconomy would simply be your economy implementation and MyPlugin is just your main class for your plugin.

Accessing the Economy

To retrieve an installed economy plugin that used the method above, you can simply do the following:

Plugin plugin = Bukkit.getPluginManager().getPlugin("MCCore");
if (plugin != null) {
    this.economy = ((MCCore)plugin).getEconomy();


Posts Quoted:
Clear All Quotes