Olzie Development
HomeDiscord
  • Introduction
  • Minecraft Plugins
    • Player Auctions
      • Commands & Permissions
      • Configuration
        • Item Configuration
        • Menu Configuration
        • Lang Configuration
      • FAQ
        • Database FAQ
      • Supported Plugins
      • Plugin Features
      • Plugin API
        • Creating expansions
          • Auction Currency
          • Auction Product
          • Auction Converter
        • Creating Commands
        • Using Events
      • Rest API
        • Endpoints
          • GET
            • /api/playerauctions/getPlayerAuctionByID/{id}
            • /api/playerauctions/getRecentAuctionsByUUID/{page}
            • /api/playerauctions/getPlayerAuctions/{page}
            • /api/playerauctions/getAuctionCategoryByName/{categoryname}
            • /api/playerauctions/getAuctionCategories/{page}
            • /api/playerauctions/getAuctionPlayerByUUID/{uuid}
          • DELETE
            • /api/playerauctions/deleteRecentAuctionByID/{id}
        • Events
          • PlayerAuctionSellEvent
          • PlayerAuctionBuyEvent
          • PlayerAuctionBidEvent
          • PlayerAuctionBidWonEvent
          • PlayerAuctionRemoveEvent
          • AuctionExpireUpdateEvent
          • AuctionPlayerUpdateEvent
          • PlayerAuctionUpdateEvent
        • Errors
    • Player Economy
      • Commands & Permissions
      • Configuration
        • Item Configuration
        • Lang Configuration
      • FAQ
        • Database FAQ
      • Supported Plugins
      • Plugin Features
      • Plugin API
        • Creating Commands
        • Using Events
      • Rest API
        • Endpoints
          • GET
          • DELETE
        • Events
        • Errors
    • Player Warps
      • Commands & Permissions
      • Configuration
        • Item Configuration
        • Menu Configuration
        • Lang Configuration
      • FAQ
        • Database FAQ
      • Supported Plugins
      • Plugin Features
      • Plugin API
        • Creating expansions
          • Warp Addon
          • Warp Map Addon
          • Warp Converter
          • Warp Currency
        • Creating Commands
        • Using Events
      • Rest API
        • Endpoints
          • GET
            • /api/playerwarps/getPlayerWarpByName/{warpname}
            • /api/playerwarps/getSponsorWarp/{id}
            • /api/playerwarps/getPlayerWarpByID/{id}
            • /api/playerwarps/getPlayerWarps/{page}
            • /api/playerwarps/getWarpCategoryByName/{categoryname}
            • /api/playerwarps/getWarpCategories/{page}
            • /api/playerwarps/getWarpPlayerByUUID/{uuid}
          • DELETE
            • /api/playerwarps/deletePlayerWarpByName/{warpname}
            • /api/playerwarps/deletePlayerWarpByID/{id}
        • Events
          • PlayerWarpTeleportEvent
          • PlayerWarpSponsorEvent
          • PlayerWarpRentEvent
          • PlayerWarpRemoveEvent
          • PlayerWarpCreateEvent
          • WarpPlayerUpdateEvent
          • PlayerWarpUpdateEvent
        • Errors
    • Player Businesses
      • Commands & Permissions
      • Configuration
        • Item Configuration
        • Menu Configuration
        • Lang Configuration
      • FAQ
      • Supported Plugins
      • Plugin Features
      • Plugin API
      • Rest API
        • Endpoints
          • GET
          • DELETE
        • Events
        • Errors
    • Player Trade
      • Commands & Permissions
      • Configuration
        • Item Configuration
        • Menu Configuration
        • Lang Configuration
      • FAQ
      • Supported Plugins
      • Plugin Features
      • Plugin API
      • Rest API
        • Endpoints
          • GET
          • DELETE
        • Events
        • Errors
    • Player Treasury
      • Commands & Permissions
      • Configuration
        • Lang Configuration
      • FAQ
      • Supported Plugins
      • Plugin Features
      • Plugin API
      • Rest API
        • Endpoints
          • GET
          • DELETE
        • Events
        • Errors
    • Player Elections
      • Commands & Permissions
      • Configuration
        • Lang Configuration
      • FAQ
      • Supported Plugins
      • Plugin Features
      • Plugin API
      • Rest API
        • Endpoints
          • GET
          • DELETE
        • Events
        • Errors
    • Night Market
      • Commands & Permissions
      • Configuration
        • Item Configuration
        • Menu Configuration
        • Lang Configuration
      • FAQ
      • Supported Plugins
      • Plugin Features
      • Plugin API
        • Creating expansions
          • Market Currency
        • Creating Commands
        • Using Events
      • Rest API
        • Endpoints
          • GET
          • DELETE
        • Events
        • Errors
Powered by GitBook
On this page

Was this helpful?

  1. Minecraft Plugins
  2. Player Auctions
  3. Rest API
  4. Endpoints
  5. GET

/api/playerauctions/getAuctionCategories/{page}

Retrieve a paginated list of auction categories.

  • Parameters:

    • page: The page number to retrieve (for pagination).

  • Response:

    The response will return a JSON object with the following structure:

    {
      "totalPages" : 1,
      "totalCategories" : 6,
      "categories" : [ {
        "minPrice" : -1.0,
        "maxPrice" : -1.0,
        "all" : true,
        "icon" : {
          "type" : "BOOK",
          "meta" : {
            "display-name" : "{\"text\":\"\",\"extra\":[{\"text\":\"All Auctions\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
            "lore" : [ "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"yellow\"},{\"text\":\" to view all the auctions.\",\"color\":\"aqua\"}],\"italic\":false}" ],
            "PublicBukkitValues" : "{\n    \"playerauctions:itemtag_item\": \"1\"\n}"
          }
        },
        "name" : "all",
        "displayName" : "All"
      }, {
        "minPrice" : -1.0,
        "maxPrice" : -1.0,
        "all" : false,
        "icon" : {
          "type" : "CAKE",
          "meta" : {
            "display-name" : "{\"text\":\"\",\"extra\":[{\"text\":\"Food\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
            "lore" : [ "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"yellow\"},{\"text\":\" to view all the food.\",\"color\":\"aqua\"}],\"italic\":false}" ],
            "PublicBukkitValues" : "{\n    \"playerauctions:itemtag_item\": \"1\"\n}"
          }
        },
        "name" : "food",
        "displayName" : "Food"
      }, {
        "minPrice" : -1.0,
        "maxPrice" : -1.0,
        "all" : false,
        "icon" : {
          "type" : "DIAMOND_PICKAXE",
          "meta" : {
            "display-name" : "{\"text\":\"\",\"extra\":[{\"text\":\"Tools\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
            "lore" : [ "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"yellow\"},{\"text\":\" to view all the tools.\",\"color\":\"aqua\"}],\"italic\":false}" ],
            "attribute-modifiers" : { },
            "ItemFlags" : [ "HIDE_ATTRIBUTES" ],
            "PublicBukkitValues" : "{\n    \"playerauctions:itemtag_item\": \"1\"\n}"
          }
        },
        "name" : "tools",
        "displayName" : "Tools"
      }, {
        "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"
      }, {
        "minPrice" : -1.0,
        "maxPrice" : -1.0,
        "all" : false,
        "icon" : {
          "type" : "ENCHANTED_BOOK",
          "meta" : {
            "display-name" : "{\"text\":\"\",\"extra\":[{\"text\":\"Items\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
            "lore" : [ "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"yellow\"},{\"text\":\" to view all the items.\",\"color\":\"aqua\"}],\"italic\":false}" ],
            "PublicBukkitValues" : "{\n    \"playerauctions:itemtag_item\": \"1\"\n}"
          }
        },
        "name" : "items",
        "displayName" : "Items"
      }, {
        "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"
      } ],
      "currentPage" : 1
    }

Fields:

  • totalPages (Number): The total number of pages.

  • totalCategories (Number): The total number of categories.

  • currentPage (Number): The current page number.

  • categories (Array of Objects): A list of category details.

    • minPrice (Number): The minimum price for the category.

    • maxPrice (Number): The maximum price for the category.

    • all (Boolean): Indicates if this category includes all items.

    • icon (Object): The icon details for the category.

      • type (String): The type of the icon (e.g., BOOK, CAKE).

      • meta (Object): Metadata for the icon.

        • display-name (String): The JSON string representation of the display name.

        • lore (Array of Strings): Lore text to describe the icon.

        • PublicBukkitValues (String): A JSON string containing custom metadata for Bukkit.

        • attribute-modifiers (Object): Any modifiers applied to the icon's attributes.

        • ItemFlags (Array of Strings): Flags applied to the icon (e.g., hiding attributes).

    • name (String): The unique identifier for the category.

    • displayName (String): The display name of the category.

Note:

  • Based on server settings, you may not be able to access auction information if you do not own the auction.

Previous/api/playerauctions/getAuctionCategoryByName/{categoryname}Next/api/playerauctions/getAuctionPlayerByUUID/{uuid}

Last updated 4 months ago

Was this helpful?

is required to access this endpoint.

Authentication