Bug fixes on API.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1371 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
xeology 2011-05-08 19:25:44 +00:00
parent 79a09fe046
commit a1306a1a4e

View File

@ -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;
}