mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
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:
parent
79a09fe046
commit
a1306a1a4e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user