mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-02-27 21:31:33 +01:00
patch to add perm check to -server flag
Took 31 seconds
This commit is contained in:
parent
1ffc5cfad7
commit
f5a35a8043
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user