Search in sources :

Example 1 with VaultEconomyProvider

use of com.earth2me.essentials.economy.vault.VaultEconomyProvider in project Essentials by EssentialsX.

the class Essentials method onLoad.

@Override
public void onLoad() {
    try {
        // Vault registers their Essentials provider at low priority, so we have to use normal priority here
        Class.forName("net.milkbowl.vault.economy.Economy");
        getServer().getServicesManager().register(net.milkbowl.vault.economy.Economy.class, new VaultEconomyProvider(this), this, ServicePriority.Normal);
    } catch (final ClassNotFoundException ignored) {
    // Probably safer than fetching for the plugin as bukkit may not have marked it as enabled at this point in time
    }
}
Also used : VaultEconomyProvider(com.earth2me.essentials.economy.vault.VaultEconomyProvider)

Example 2 with VaultEconomyProvider

use of com.earth2me.essentials.economy.vault.VaultEconomyProvider in project Essentials by drtshock.

the class Essentials method onLoad.

@Override
public void onLoad() {
    try {
        // Vault registers their Essentials provider at low priority, so we have to use normal priority here
        Class.forName("net.milkbowl.vault.economy.Economy");
        getServer().getServicesManager().register(net.milkbowl.vault.economy.Economy.class, new VaultEconomyProvider(this), this, ServicePriority.Normal);
    } catch (final ClassNotFoundException ignored) {
    // Probably safer than fetching for the plugin as bukkit may not have marked it as enabled at this point in time
    }
}
Also used : VaultEconomyProvider(com.earth2me.essentials.economy.vault.VaultEconomyProvider)

Aggregations

VaultEconomyProvider (com.earth2me.essentials.economy.vault.VaultEconomyProvider)2