summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandsell.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java
index 7d66284b1..a80b28387 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandsell.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandsell.java
@@ -32,6 +32,9 @@ public class Commandsell extends EssentialsCommand
int amount = 0;
if (args.length > 1) {
amount = Integer.parseInt(args[1].replaceAll("[^0-9]", ""));
+ if (args[1].startsWith("-")) {
+ amount = -amount;
+ }
}
double worth = Essentials.getWorth().getPrice(is);
boolean stack = args.length > 1 && args[1].endsWith("s");