diff --git a/src/main/java/ca/tweetzy/auctionhouse/auction/AuctionPlayer.java b/src/main/java/ca/tweetzy/auctionhouse/auction/AuctionPlayer.java index cc4d2b4..fc01d04 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/auction/AuctionPlayer.java +++ b/src/main/java/ca/tweetzy/auctionhouse/auction/AuctionPlayer.java @@ -89,6 +89,10 @@ public class AuctionPlayer { public int getSellLimit() { + // fall back + if (player == null) + return Integer.MAX_VALUE; + if (player.hasPermission("auctionhouse.maxsell.*")) return Integer.MAX_VALUE; for (int i = 1001; i > 0; i--) { if (player.hasPermission("auctionhouse.maxsell." + i)) return i;