mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-29 08:52:27 +00:00
Correct check on bulk sell permission.
This commit is contained in:
parent
c0800afeeb
commit
8485bd44f9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue