mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 20:29:20 +00:00
Remove the restriction of EssEcoApi to not use iConomy or BOSE
This commit is contained in:
parent
d67ccd03ca
commit
27c84ceaac
1 changed files with 2 additions and 5 deletions
|
@ -3,7 +3,6 @@ package com.earth2me.essentials.api;
|
||||||
import com.earth2me.essentials.Essentials;
|
import com.earth2me.essentials.Essentials;
|
||||||
import com.earth2me.essentials.EssentialsConf;
|
import com.earth2me.essentials.EssentialsConf;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
import com.earth2me.essentials.UserData;
|
|
||||||
import com.earth2me.essentials.Util;
|
import com.earth2me.essentials.Util;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
@ -79,8 +78,7 @@ public final class Economy
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
throw new UserDoesNotExistException(name);
|
throw new UserDoesNotExistException(name);
|
||||||
}
|
}
|
||||||
// Use UserData to avoid calls to iConomy and Register
|
return user.getMoney();
|
||||||
return ((UserData)user).getMoney();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -100,8 +98,7 @@ public final class Economy
|
||||||
{
|
{
|
||||||
throw new NoLoanPermittedException();
|
throw new NoLoanPermittedException();
|
||||||
}
|
}
|
||||||
// Use UserData to avoid calls to iConomy and Register
|
user.setMoney(balance);
|
||||||
((UserData)user).setMoney(balance);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue