patch to add perm check to -server flag

Took 31 seconds
This commit is contained in:
Kiran Hart 2023-09-12 19:45:19 -04:00
parent 1ffc5cfad7
commit f5a35a8043
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -189,7 +189,7 @@ public final class CommandSell extends AbstractCommand {
isInfinite = true;
// check if the listing should be a server auction
if (args[i].equalsIgnoreCase("-server"))
if (args[i].equalsIgnoreCase("-server") && (player.hasPermission("auctionhouse.admin") || player.isOp()))
serverAuction = true;
if (args[i].toLowerCase().startsWith("-t") && Settings.ALLOW_PLAYERS_TO_DEFINE_AUCTION_TIME.getBoolean()) {