mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-01-01 05:48:06 +01:00
commit
240e64cb8c
2
pom.xml
2
pom.xml
@ -228,7 +228,7 @@
|
|||||||
<artifactId>craftconomy3</artifactId>
|
<artifactId>craftconomy3</artifactId>
|
||||||
<version>3.0.0</version>
|
<version>3.0.0</version>
|
||||||
<scope>system</scope>
|
<scope>system</scope>
|
||||||
<systemPath>${project.basedir}/lib/Craftconomy3-b189.jar</systemPath>
|
<systemPath>${project.basedir}/lib/Craftconomy3-b320.jar</systemPath>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.crystalyx.bukkit.simplyperms</groupId>
|
<groupId>net.crystalyx.bukkit.simplyperms</groupId>
|
||||||
|
@ -207,7 +207,7 @@ public class Vault extends JavaPlugin {
|
|||||||
hookEconomy("CraftConomy", Economy_Craftconomy.class, ServicePriority.Normal, "me.greatman.Craftconomy.Craftconomy");
|
hookEconomy("CraftConomy", Economy_Craftconomy.class, ServicePriority.Normal, "me.greatman.Craftconomy.Craftconomy");
|
||||||
|
|
||||||
// Try to load Craftconomy3
|
// Try to load Craftconomy3
|
||||||
hookEconomy("CraftConomy3", Economy_Craftconomy3.class, ServicePriority.Normal, "com.greatmancode.craftconomy3.CC3BukkitLoader");
|
hookEconomy("CraftConomy3", Economy_Craftconomy3.class, ServicePriority.Normal, "com.greatmancode.craftconomy3.BukkitLoader");
|
||||||
|
|
||||||
// Try to load eWallet
|
// Try to load eWallet
|
||||||
hookEconomy("eWallet", Economy_eWallet.class, ServicePriority.Normal, "me.ethan.eWallet.ECO");
|
hookEconomy("eWallet", Economy_eWallet.class, ServicePriority.Normal, "me.ethan.eWallet.ECO");
|
||||||
|
@ -32,7 +32,7 @@ import org.bukkit.event.server.PluginDisableEvent;
|
|||||||
import org.bukkit.event.server.PluginEnableEvent;
|
import org.bukkit.event.server.PluginEnableEvent;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
|
|
||||||
import com.greatmancode.craftconomy3.CC3BukkitLoader;
|
import com.greatmancode.craftconomy3.BukkitLoader;
|
||||||
import com.greatmancode.craftconomy3.Common;
|
import com.greatmancode.craftconomy3.Common;
|
||||||
import com.greatmancode.craftconomy3.account.Account;
|
import com.greatmancode.craftconomy3.account.Account;
|
||||||
import com.greatmancode.craftconomy3.currency.CurrencyManager;
|
import com.greatmancode.craftconomy3.currency.CurrencyManager;
|
||||||
@ -43,7 +43,7 @@ public class Economy_Craftconomy3 implements Economy {
|
|||||||
|
|
||||||
private final String name = "Craftconomy3";
|
private final String name = "Craftconomy3";
|
||||||
private Plugin plugin = null;
|
private Plugin plugin = null;
|
||||||
protected CC3BukkitLoader economy = null;
|
protected BukkitLoader economy = null;
|
||||||
|
|
||||||
public Economy_Craftconomy3(Plugin plugin) {
|
public Economy_Craftconomy3(Plugin plugin) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
@ -52,8 +52,8 @@ public class Economy_Craftconomy3 implements Economy {
|
|||||||
// Load Plugin in case it was loaded before
|
// Load Plugin in case it was loaded before
|
||||||
if (economy == null) {
|
if (economy == null) {
|
||||||
Plugin ec = plugin.getServer().getPluginManager().getPlugin("Craftconomy3");
|
Plugin ec = plugin.getServer().getPluginManager().getPlugin("Craftconomy3");
|
||||||
if (ec != null && ec.isEnabled() && ec.getClass().getName().equals("com.greatmancode.craftconomy3.CC3BukkitLoader")) {
|
if (ec != null && ec.isEnabled() && ec.getClass().getName().equals("com.greatmancode.craftconomy3.BukkitLoader")) {
|
||||||
economy = (CC3BukkitLoader) ec;
|
economy = (BukkitLoader) ec;
|
||||||
log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), name));
|
log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -71,8 +71,8 @@ public class Economy_Craftconomy3 implements Economy {
|
|||||||
if (economy.economy == null) {
|
if (economy.economy == null) {
|
||||||
Plugin ec = plugin.getServer().getPluginManager().getPlugin("Craftconomy3");
|
Plugin ec = plugin.getServer().getPluginManager().getPlugin("Craftconomy3");
|
||||||
|
|
||||||
if (ec != null && ec.isEnabled() && ec.getClass().getName().equals("com.greatmancode.craftconomy3.CC3BukkitLoader")) {
|
if (ec != null && ec.isEnabled() && ec.getClass().getName().equals("com.greatmancode.craftconomy3.BukkitLoader")) {
|
||||||
economy.economy = (CC3BukkitLoader) ec;
|
economy.economy = (BukkitLoader) ec;
|
||||||
log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), economy.name));
|
log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), economy.name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user