mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 03:22:23 +00:00
Reformat Code
This commit is contained in:
1 parent
21e920426e
commit
1de1c4e710
169 files changed
+3967
-1556
No files matched your search
@@ -16,19 +16,29 @@ public enum EnumAuctionLogAction {
|
||||
CLAIMED,
|
||||
CLAIM_EXPIRED;
|
||||
|
||||
/** Check if this action should be logged based on config settings */
|
||||
/**
|
||||
* Check if this action should be logged based on config settings
|
||||
*/
|
||||
public boolean shouldLog() {
|
||||
if (!ConfigMarket.AuctionLoggingEnabled) return false;
|
||||
switch (this) {
|
||||
case CREATED: return ConfigMarket.LogAuctionCreated;
|
||||
case BID: return ConfigMarket.LogAuctionBid;
|
||||
case BUYOUT: return ConfigMarket.LogAuctionBuyout;
|
||||
case SOLD: return ConfigMarket.LogAuctionSold;
|
||||
case EXPIRED: return ConfigMarket.LogAuctionExpired;
|
||||
case CANCELLED: return ConfigMarket.LogAuctionCancelled;
|
||||
case CREATED:
|
||||
return ConfigMarket.LogAuctionCreated;
|
||||
case BID:
|
||||
return ConfigMarket.LogAuctionBid;
|
||||
case BUYOUT:
|
||||
return ConfigMarket.LogAuctionBuyout;
|
||||
case SOLD:
|
||||
return ConfigMarket.LogAuctionSold;
|
||||
case EXPIRED:
|
||||
return ConfigMarket.LogAuctionExpired;
|
||||
case CANCELLED:
|
||||
return ConfigMarket.LogAuctionCancelled;
|
||||
case CLAIMED:
|
||||
case CLAIM_EXPIRED: return ConfigMarket.LogAuctionClaimed;
|
||||
default: return false;
|
||||
case CLAIM_EXPIRED:
|
||||
return ConfigMarket.LogAuctionClaimed;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user