diff options
author | xeology <xeology@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-08 19:25:44 +0000 |
---|---|---|
committer | xeology <xeology@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-08 19:25:44 +0000 |
commit | a1306a1a4ef3473dc369a6236b1968cbcedbdf55 (patch) | |
tree | 287b78057c891d618373436df3c9f64e93cb9338 | |
parent | 79a09fe046537dab5def10898ebd3b4071e4ef97 (diff) | |
download | Essentials-a1306a1a4ef3473dc369a6236b1968cbcedbdf55.tar Essentials-a1306a1a4ef3473dc369a6236b1968cbcedbdf55.tar.gz Essentials-a1306a1a4ef3473dc369a6236b1968cbcedbdf55.tar.lz Essentials-a1306a1a4ef3473dc369a6236b1968cbcedbdf55.tar.xz Essentials-a1306a1a4ef3473dc369a6236b1968cbcedbdf55.zip |
Bug fixes on API.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1371 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/api/Economy.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Essentials/src/com/earth2me/essentials/api/Economy.java b/Essentials/src/com/earth2me/essentials/api/Economy.java index 089f04437..55e415f8e 100644 --- a/Essentials/src/com/earth2me/essentials/api/Economy.java +++ b/Essentials/src/com/earth2me/essentials/api/Economy.java @@ -162,13 +162,13 @@ public class Economy if (accountCreated(name)) { User user = usrConv(name); - result = user.getMoney() + money; + result = getMoney(name) + money; user.setMoney(money); } return; } User user = usrConv(name); - result = user.getMoney() + money; + result = getMoney(name) + money; user.setMoney(result); return; } @@ -182,14 +182,14 @@ public class Economy if (accountCreated(name)) { User user = usrConv(name); - result = user.getMoney() / money; + result = getMoney(name)/ money; user.setMoney(result); return; } return; } User user = usrConv(name); - result = user.getMoney() / money; + result = getMoney(name) / money; user.setMoney(result); return; } @@ -203,14 +203,14 @@ public class Economy if (accountCreated(name)) { User user = usrConv(name); - result = user.getMoney() * money; + result = getMoney(name) * money; user.setMoney(result); return; } return; } User user = usrConv(name); - result = user.getMoney() * money; + result = getMoney(name) * money; user.setMoney(result); return; } @@ -224,14 +224,14 @@ public class Economy if (accountCreated(name)) { User user = usrConv(name); - result = user.getMoney() - money; + result = getMoney(name) - money; user.setMoney(result); return; } return; } User user = usrConv(name); - result = user.getMoney() - money; + result = getMoney(name) - money; user.setMoney(result); return; } |