mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-27 13:07:23 +01:00
fix bug in iConomy versioning that shows up before the plugin is loaded.
This commit is contained in:
parent
95fc0362dd
commit
03392869eb
@ -52,9 +52,9 @@ public class Economy_iConomy6 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("iConomy");
|
Plugin ec = plugin.getServer().getPluginManager().getPlugin("iConomy");
|
||||||
String version = ec.getDescription().getVersion().split(".")[0];
|
|
||||||
name += version;
|
|
||||||
if (ec != null && ec.isEnabled() && ec.getClass().getName().equals("com.iCo6.iConomy")) {
|
if (ec != null && ec.isEnabled() && ec.getClass().getName().equals("com.iCo6.iConomy")) {
|
||||||
|
String version = ec.getDescription().getVersion().split(".")[0];
|
||||||
|
name += version;
|
||||||
economy = (iConomy) ec;
|
economy = (iConomy) ec;
|
||||||
accounts = new Accounts();
|
accounts = new Accounts();
|
||||||
log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), name));
|
log.info(String.format("[%s][Economy] %s hooked.", plugin.getDescription().getName(), name));
|
||||||
@ -75,6 +75,8 @@ public class Economy_iConomy6 implements Economy {
|
|||||||
Plugin ec = plugin.getServer().getPluginManager().getPlugin("iConomy");
|
Plugin ec = plugin.getServer().getPluginManager().getPlugin("iConomy");
|
||||||
|
|
||||||
if (ec != null && ec.isEnabled() && ec.getClass().getName().equals("com.iCo6.iConomy")) {
|
if (ec != null && ec.isEnabled() && ec.getClass().getName().equals("com.iCo6.iConomy")) {
|
||||||
|
String version = ec.getDescription().getVersion().split(".")[0];
|
||||||
|
name += version;
|
||||||
economy.economy = (iConomy) ec;
|
economy.economy = (iConomy) ec;
|
||||||
accounts = new Accounts();
|
accounts = new Accounts();
|
||||||
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