Skip to content

Commit

Permalink
Remove the restriction of EssEcoApi to not use iConomy or BOSE
Browse files Browse the repository at this point in the history
  • Loading branch information
snowleo committed Jun 25, 2011
1 parent cfa8b8e commit b7cb11c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Essentials/src/com/earth2me/essentials/api/Economy.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.earth2me.essentials.Essentials;
import com.earth2me.essentials.EssentialsConf;
import com.earth2me.essentials.User;
import com.earth2me.essentials.UserData;
import com.earth2me.essentials.Util;
import java.io.File;
import java.util.logging.Level;
Expand Down Expand Up @@ -79,8 +78,7 @@ public static double getMoney(String name) throws UserDoesNotExistException
if (user == null) {
throw new UserDoesNotExistException(name);
}
// Use UserData to avoid calls to iConomy and Register
return ((UserData)user).getMoney();
return user.getMoney();
}

/**
Expand All @@ -100,8 +98,7 @@ public static void setMoney(String name, double balance) throws UserDoesNotExist
{
throw new NoLoanPermittedException();
}
// Use UserData to avoid calls to iConomy and Register
((UserData)user).setMoney(balance);
user.setMoney(balance);
}

/**
Expand Down

0 comments on commit b7cb11c

Please sign in to comment.