Several bug fixes and cleanup.

Found using PMD and FindBugs.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1553 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo 2011-06-01 10:40:12 +00:00
parent 2a614e53a7
commit 117d938ac5
74 changed files with 645 additions and 354 deletions

View file

@ -89,9 +89,9 @@ public class Commandsell extends EssentialsCommand
amount = -amount;
}
}
double worth = Essentials.getWorth().getPrice(is);
double worth = ess.getWorth().getPrice(is);
boolean stack = args.length > 1 && args[1].endsWith("s");
boolean requireStack = ess.getConfiguration().getBoolean("trade-in-stacks-" + id, false);
boolean requireStack = ess.getSettings().isTradeInStacks(id);
if (Double.isNaN(worth))
{