Correct check on bulk sell permission.

This commit is contained in:
drtshock 2015-09-23 15:02:44 -05:00
parent c0800afeeb
commit 8485bd44f9

View File

@ -29,7 +29,7 @@ public class Commandsell extends EssentialsCommand {
if (args[0].equalsIgnoreCase("hand") && !user.isAuthorized("essentials.sell.hand")) { if (args[0].equalsIgnoreCase("hand") && !user.isAuthorized("essentials.sell.hand")) {
throw new Exception(tl("sellHandPermission")); throw new Exception(tl("sellHandPermission"));
} else if (args[0].equalsIgnoreCase("inventory") || args[0].equalsIgnoreCase("invent") || args[0].equalsIgnoreCase("all") && !user.isAuthorized("essentials.sell.bulk")) { } else if ((args[0].equalsIgnoreCase("inventory") || args[0].equalsIgnoreCase("invent") || args[0].equalsIgnoreCase("all")) && !user.isAuthorized("essentials.sell.bulk")) {
throw new Exception(tl("sellBulkPermission")); throw new Exception(tl("sellBulkPermission"));
} }