# PlayerAuctionUpdateEvent

This event is called when an auction has been updated, you can view the JavaDocs for this event [here](https://javadocs.olziedev.com/playerauctions/com/olziedev/playerauctions/api/events/update/PlayerAuctionUpdateEvent.html). 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:

```json
{
  "name" : "PlayerAuctionUpdateEvent",
  "type" : "EVENT_TRIGGERED",
  "event" : {
    "cancelled" : false,
    "updatedValue" : {
      "randomSort" : 0,
      "originalPrice" : 1000.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" : "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" : 0.0,
      "bidding" : false,
      "auctionDate" : 1736121811679,
      "expireTime" : 172799000,
      "auctionServer" : "PA_SERVER",
      "itemAmount" : 64,
      "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" : 1,
      "item" : {
        "type" : "DIRT",
        "amount" : 64
      }
    },
    "type" : "PRODUCT",
    "asynchronous" : true
  }
}
```
