+ Added flippable trade command arguments
This commit is contained in:
1 parent
c0f0b16892
commit
a77725791a
1 file changed
+10
-1
@@ -27,14 +27,23 @@ public class CommandTradeBeans extends Command
|
||||
}
|
||||
|
||||
int beans = 0;
|
||||
try {
|
||||
|
||||
try
|
||||
{
|
||||
beans = Integer.parseInt(input.args.split(" ")[0]);
|
||||
}
|
||||
catch (NumberFormatException e)
|
||||
{
|
||||
try
|
||||
{
|
||||
beans = Integer.parseInt(input.args.split(" ")[1]);
|
||||
}
|
||||
catch(Exception eInner)
|
||||
{
|
||||
res.send(LocStrings.stub("TradeBeansIntParseError"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(user.getBeans() < beans)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user