mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-01-09 13:07:41 +01:00
if player is null during getSellLimit, return max val
Took 15 seconds
This commit is contained in:
parent
9c93ebf385
commit
3c0ea24ac6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user