mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-16 15:45:58 +01:00
Correct check on bulk sell permission.
This commit is contained in:
parent
c0800afeeb
commit
8485bd44f9
@ -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"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user