diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-16 15:11:44 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-16 15:11:44 +0000 |
commit | 473271b07689c9d59570a578a1c335d801e0ee7d (patch) | |
tree | bf7f9679b7cf566ea77f338da4dc32893ec8891a | |
parent | b17bb09b2b3c3e0db3963ed3c7a14cf13d8b14b7 (diff) | |
download | Essentials-473271b07689c9d59570a578a1c335d801e0ee7d.tar Essentials-473271b07689c9d59570a578a1c335d801e0ee7d.tar.gz Essentials-473271b07689c9d59570a578a1c335d801e0ee7d.tar.lz Essentials-473271b07689c9d59570a578a1c335d801e0ee7d.tar.xz Essentials-473271b07689c9d59570a578a1c335d801e0ee7d.zip |
[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
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandsell.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java index 73555ef50..0f8d3f98b 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java @@ -31,7 +31,7 @@ public class Commandsell extends EssentialsCommand int id = is.getTypeId(); int amount = 0; 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); boolean stack = args.length > 1 && args[1].endsWith("s"); |