Last updated
Last updated
This event is called when a player purchases an auction, you can view the JavaDocs for this event . Please note that this event will only be triggered for the creator of the auction if the server has setup like that.
Once the event is triggered, you will receive a JSON object containing the data below:
{
"name" : "PlayerAuctionBuyEvent",
"type" : "EVENT_TRIGGERED",
"event" : {
"cancelled" : false,
"playerAuction" : {
"randomSort" : 0,
"originalPrice" : 50000.0,
"internalCurrency" : null,
"auctionPlayer" : {
"logs" : [ ],
"backpack" : [ ],
"staticAuctions" : 0,
"blacklistedPlayers" : [ ],
"madeOffline" : [ ],
"maximumAuctions" : 9223372036854775807,
"prettyMaximumAuctions" : "Unlimited",
"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" : "DIAMOND_HELMET",
"meta" : {
"display-name" : "{\"text\":\"\",\"extra\":[{\"text\":\"Armor\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
"lore" : [ "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"yellow\"},{\"text\":\" to view all the armor.\",\"color\":\"aqua\"}],\"italic\":false}" ],
"attribute-modifiers" : { },
"ItemFlags" : [ "HIDE_ATTRIBUTES" ],
"PublicBukkitValues" : "{\n \"playerauctions:itemtag_item\": \"1\"\n}"
}
},
"name" : "armor",
"displayName" : "Armor"
} ],
"bidder" : null,
"price" : 50000.0,
"bidding" : false,
"auctionDate" : 1736121916482,
"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" : 3,
"item" : {
"type" : "DIAMOND_CHESTPLATE",
"meta" : {
"enchants" : {
"minecraft:mending" : 1,
"minecraft:protection" : 5,
"minecraft:unbreaking" : 3
}
}
}
},
"buyer" : {
"uuid" : "2bb28618-c1e1-46cc-9492-fe30d5dba8fa",
"name" : "ResetUrPassword"
},
"price" : 50000.0,
"serializableProduct" : {
"bytes" : "rO0ABXVyABBbTGphdmEudXRpbC5NYXA7/+CwhupHTAsCAAB4cAAAAAFzcgARamF2YS51dGlsLkhhc2hNYXAFB9rBwxZg0QMAAkYACmxvYWRGYWN0b3JJAAl0aHJlc2hvbGR4cD9AAAAAAAAMdwgAAAAQAAAAAXQABXBhcGVydXIAAltCrPMX+AYIVOACAAB4cAAAAJcfiwgAAAAAAAD/VY6xDsIwEEMNUREKA0JCTHwJc7+BFR3JQSOSS5Rc+X4KHSoGL362ZQsY7HpSunJtIQuwb1usg8c5BWFX6aEXHyhl8Tc3cNMSSdmgc3kUBbCysC6nkoVFm8Vp6bG4gUTTDDaR3xybwWFJTMgHeX5nDI6LP8q9Mr1mZP5QqVnZ6e8rukn4AOuFfLvFAAAAeA==",
"amount" : 1,
"naturalAmount" : 0,
"maxAmount" : 1,
"product" : {
"type" : "DIAMOND_CHESTPLATE",
"meta" : {
"enchants" : {
"minecraft:mending" : 1,
"minecraft:protection" : 5,
"minecraft:unbreaking" : 3
}
}
},
},
"asynchronous" : false
}
}