mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-23 08:31:28 +01:00
API Changes.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1373 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
8f67268c69
commit
c33d3cbed8
@ -162,14 +162,12 @@ public class Economy
|
||||
if (accountCreated(name))
|
||||
{
|
||||
result = getMoney(name) + money;
|
||||
User user = usrConv(name);
|
||||
user.setMoney(money);
|
||||
setMoney(name,result);
|
||||
}
|
||||
return;
|
||||
}
|
||||
result = getMoney(name) + money;
|
||||
User user = usrConv(name);
|
||||
user.setMoney(result);
|
||||
setMoney(name,result);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -182,15 +180,13 @@ public class Economy
|
||||
if (accountCreated(name))
|
||||
{
|
||||
result = getMoney(name)/ money;
|
||||
User user = usrConv(name);
|
||||
user.setMoney(result);
|
||||
setMoney(name,result);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
result = getMoney(name) / money;
|
||||
User user = usrConv(name);
|
||||
user.setMoney(result);
|
||||
setMoney(name,result);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -203,15 +199,13 @@ public class Economy
|
||||
if (accountCreated(name))
|
||||
{
|
||||
result = getMoney(name) * money;
|
||||
User user = usrConv(name);
|
||||
user.setMoney(result);
|
||||
setMoney(name,result);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
result = getMoney(name) * money;
|
||||
User user = usrConv(name);
|
||||
user.setMoney(result);
|
||||
setMoney(name,result);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -224,15 +218,13 @@ public class Economy
|
||||
if (accountCreated(name))
|
||||
{
|
||||
result = getMoney(name) - money;
|
||||
User user = usrConv(name);
|
||||
user.setMoney(result);
|
||||
setMoney(name,result);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
result = getMoney(name) - money;
|
||||
User user = usrConv(name);
|
||||
user.setMoney(result);
|
||||
setMoney(name,result);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user