mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
[trunk] /sell itemname amount
New syntax for sell command, proposed by KimKandor It won't sell the items in hand anymore. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1220 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
137bafd0a8
commit
5ef0fd180b
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ public class Commandsell extends EssentialsCommand
|
||||||
int id = is.getTypeId();
|
int id = is.getTypeId();
|
||||||
int amount = 0;
|
int amount = 0;
|
||||||
if (args.length > 1) {
|
if (args.length > 1) {
|
||||||
amount = Integer.parseInt(args[0].replaceAll("[^0-9]", ""));
|
amount = Integer.parseInt(args[1].replaceAll("[^0-9]", ""));
|
||||||
}
|
}
|
||||||
double worth = Essentials.getWorth().getPrice(is);
|
double worth = Essentials.getWorth().getPrice(is);
|
||||||
boolean stack = args.length > 1 && args[1].endsWith("s");
|
boolean stack = args.length > 1 && args[1].endsWith("s");
|
||||||
|
|
Loading…
Reference in a new issue