PlayerAuctionBidEvent
This event is called when a player bids on an auction, you can view the JavaDocs for this event here. Please note that this event will only be triggered for the creator of the auction if the server has setup like that.
Received Data
Once the event is triggered, you will receive a JSON object containing the data below:
{
"name" : "PlayerAuctionBidEvent",
"type" : "EVENT_TRIGGERED",
"event" : {
"cancelled" : false,
"playerAuction" : {
"randomSort" : 0,
"originalPrice" : 1000.0,
"internalCurrency" : null,
"auctionPlayer" : {
"logs" : [ ],
"backpack" : [ ],
"staticAuctions" : 0,
"blacklistedPlayers" : [ ],
"madeOffline" : [ ],
"maximumAuctions" : 0,
"prettyMaximumAuctions" : "0",
"sellPrice" : 500.0,
"uuid" : "5ca251ab-589d-4f04-8f0c-28404d0686b0",
"messages" : [ ],
"name" : "ForgotUrPassword",
"language" : null
},
"auctionCategories" : [ {
"minPrice" : -1.0,
"maxPrice" : -1.0,
"all" : false,
"icon" : {
"type" : "DIRT",
"meta" : {
"display-name" : "{\"text\":\"\",\"extra\":[{\"text\":\"Blocks\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
"lore" : [ "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"yellow\"},{\"text\":\" to view all the blocks.\",\"color\":\"aqua\"}],\"italic\":false}" ],
"PublicBukkitValues" : "{\n \"playerauctions:itemtag_item\": \"1\"\n}"
}
},
"name" : "blocks",
"displayName" : "Blocks"
} ],
"bidder" : null,
"price" : 1000.0,
"bidding" : true,
"auctionDate" : 1736129378442,
"expireTime" : 172799000,
"auctionServer" : "PA_SERVER",
"itemAmount" : 1,
"uuid" : "5ca251ab-589d-4f04-8f0c-28404d0686b0",
"world" : "world",
"unlimited" : false,
"currency" : {
"integrated" : false,
"version" : "1.1.0-pre2",
"minPricePurchaseAmount" : -1.0,
"minPriceSellAmount" : 1000.0,
"maxPriceSellAmount" : 9999999.0,
"minPriceBidAmount" : 1000.0,
"name" : "Vault Currency",
"enabled" : true,
"currencyName" : "money",
"internalCurrencies" : [ ]
},
"id" : 9,
"item" : {
"type" : "DIRT"
}
},
"bidder" : {
"logs" : [ ],
"backpack" : [ ],
"staticAuctions" : 0,
"blacklistedPlayers" : [ ],
"madeOffline" : [ ],
"maximumAuctions" : 9223372036854775807,
"prettyMaximumAuctions" : "Unlimited",
"sellPrice" : 500.0,
"uuid" : "2bb28618-c1e1-46cc-9492-fe30d5dba8fa",
"messages" : [ ],
"name" : "ResetUrPassword",
"language" : null
},
"price" : 2000.0,
"notEnoughMoney" : false,
"asynchronous" : false
}
}
Last updated
Was this helpful?