mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-02-10 18:21:19 +01:00
➕ add auctionhouse.auctionchestbypass permission
Took 1 minute
This commit is contained in:
parent
f124de2d6b
commit
0040ae890b
@ -45,7 +45,9 @@ public final class CommandMiddleware {
|
||||
return AbstractCommand.ReturnType.FAILURE;
|
||||
}
|
||||
|
||||
if (Settings.USE_AUCTION_CHEST_MODE.getBoolean()) {
|
||||
if (Settings.USE_AUCTION_CHEST_MODE.getBoolean() && !player.hasPermission("auctionhouse.auctionchestbypass")) {
|
||||
|
||||
|
||||
instance.getLocale().getMessage("general.visit auction chest").sendPrefixedMessage(player);
|
||||
return AbstractCommand.ReturnType.FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user