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 Warps
  3. Rest API
  4. Endpoints
  5. GET

/api/playerwarps/getWarpCategories/{page}

Retrieve a paginated list of warp categories.

  • Parameters:

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

  • Response:

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

    {
        "categories": [
            {
                "teleportPrice": -1.0,
                "purgeTime": -1,
                "removeDaysTime": -1,
                "all": true,
                "icon": {
                    "type": "BOOK",
                    "meta": {
                        "display-name": "{\"text\":\"\",\"extra\":[{\"text\":\"All Warps\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
                        "lore": [
                            "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"light_purple\"},{\"text\":\" to view all the warps.\",\"color\":\"aqua\"}],\"italic\":false}"
                        ],
                        "PublicBukkitValues": "{\n    \"playerwarps:itemtag_item\": \"1\"\n}"
                    }
                },
                "name": "all",
                "permission": "",
                "displayName": "All"
            },
            {
                "teleportPrice": -1.0,
                "purgeTime": -1,
                "removeDaysTime": -1,
                "all": false,
                "icon": {
                    "type": "OAK_PLANKS",
                    "meta": {
                        "display-name": "{\"text\":\"\",\"extra\":[{\"text\":\"House Warps\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
                        "lore": [
                            "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"light_purple\"},{\"text\":\" to view all the house warps.\",\"color\":\"aqua\"}],\"italic\":false}"
                        ],
                        "PublicBukkitValues": "{\n    \"playerwarps:itemtag_item\": \"1\"\n}"
                    }
                },
                "name": "houses",
                "permission": "",
                "displayName": "Houses"
            },
            {
                "teleportPrice": -1.0,
                "purgeTime": 40,
                "removeDaysTime": 40,
                "all": false,
                "icon": {
                    "type": "CHEST",
                    "meta": {
                        "display-name": "{\"text\":\"\",\"extra\":[{\"text\":\"Shop Warps\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
                        "lore": [
                            "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"light_purple\"},{\"text\":\" to view all the shop warps.\",\"color\":\"aqua\"}],\"italic\":false}"
                        ],
                        "PublicBukkitValues": "{\n    \"playerwarps:itemtag_item\": \"1\"\n}",
                        "blockMaterial": "CHEST"
                    }
                },
                "name": "shops",
                "permission": "pw.view.shop",
                "displayName": "Shops"
            },
            {
                "teleportPrice": -1.0,
                "purgeTime": -1,
                "removeDaysTime": -1,
                "all": false,
                "icon": {
                    "type": "DIAMOND_HOE",
                    "meta": {
                        "display-name": "{\"text\":\"\",\"extra\":[{\"text\":\"Farm Warps\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
                        "lore": [
                            "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"light_purple\"},{\"text\":\" to view all the farm warps.\",\"color\":\"aqua\"}],\"italic\":false}"
                        ],
                        "PublicBukkitValues": "{\n    \"playerwarps:itemtag_item\": \"1\"\n}"
                    }
                },
                "name": "farms",
                "permission": "",
                "displayName": "Farms"
            },
            {
                "teleportPrice": -1.0,
                "purgeTime": -1,
                "removeDaysTime": -1,
                "all": false,
                "icon": {
                    "type": "DIAMOND_SWORD",
                    "meta": {
                        "display-name": "{\"text\":\"\",\"extra\":[{\"text\":\"PvP Warps\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
                        "lore": [
                            "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"light_purple\"},{\"text\":\" to view all the pvp warps.\",\"color\":\"aqua\"}],\"italic\":false}"
                        ],
                        "PublicBukkitValues": "{\n    \"playerwarps:itemtag_item\": \"1\"\n}"
                    }
                },
                "name": "pvp",
                "permission": "",
                "displayName": "PvP"
            },
            {
                "teleportPrice": -1.0,
                "purgeTime": -1,
                "removeDaysTime": -1,
                "all": false,
                "icon": {
                    "type": "PAPER",
                    "meta": {
                        "display-name": "{\"text\":\"\",\"extra\":[{\"text\":\"Other Warps\",\"obfuscated\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"color\":\"aqua\",\"bold\":false}]}",
                        "lore": [
                            "{\"text\":\"\",\"extra\":[{\"text\":\"Click\",\"color\":\"light_purple\"},{\"text\":\" to view all the other warps.\",\"color\":\"aqua\"}],\"italic\":false}"
                        ],
                        "PublicBukkitValues": "{\n    \"playerwarps:itemtag_item\": \"1\"\n}"
                    }
                },
                "name": "other",
                "permission": "",
                "displayName": "Other"
            }
        ],
        "totalPages": 1,
        "currentPage": 1,
        "totalCategories": 6
    }

Fields:

  • categories (Array of Warp objects):

    • name (String): Category name.

    • teleportPrice (Number): Price to teleport.

    • purgeTime (Number): Time until purge.

    • permission (String): Required permission.

    • removeDaysTime (Number): Time until removal.

    • all (Boolean): Whether it includes all warps.

    • icon (Object):

      • type (String): The type of the icon.

      • meta (Object):

      • display-name (String): The display name of the icon.

      • lore (Array of Strings): Lore description.

      • PublicBukkitValues (String): Custom Bukkit metadata.

    • totalPages (Number): Number of pages.

    • currentPage (Number): Current page.

    • totalCategories (Number): Total amount of categories on the server.

Note:

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

Previous/api/playerwarps/getWarpCategoryByName/{categoryname}Next/api/playerwarps/getWarpPlayerByUUID/{uuid}

Last updated 4 months ago

Was this helpful?

is required to access this endpoint.

Authentication