Warps
Base: /api/warps
Warps are named teleport targets that Hytale manages itself and that players can use in the game with /warp. In this section you create warps, list them, teleport players to them and delete them. That helps with a spawn menu on your website, a bot command or events. Warps live in the teleport plugin of Hytale and are therefore also visible in the game. They work across world boundaries.
Handler: WarpsHandler
GET
/api/warps
List warps
Returns all warps alphabetically by name with world, x, y, z (rounded to one decimal place), yaw, creator, created and world_loaded, including those created in the game.
Response Example
[
{
"name": "spawn",
"world": "default",
"x": 10.0,
"y": 64.0,
"z": -3.0,
"yaw": 90.0,
"creator": "Admin",
"created": "2026-01-01T00:00:00Z",
"world_loaded": true
}
]
cURL
curl -X GET 'http://localhost:5550/api/warps' \
-H 'X-Admin-Token: YOUR_TOKEN'
world_loaded shows whether the world of the warp is currently loaded. You cannot teleport anyone to a warp in a world that is not loaded.
Internal Behavior
Reads the warp registry of TeleportPlugin.
POST
/api/warps
Create warp
Creates a warp at a player's position or at coordinates.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name
|
string | Yes | Warp ID, 1 to 32 characters A-Z, a-z, 0-9, _ and - |
player
|
string | No | Use the position and view direction of this online player |
world
|
string | No | World for explicit coordinates, default first loaded world |
x
|
number | No | Required without player |
y
|
number | No | Required without player |
z
|
number | No | Required without player |
replace
|
boolean | No | Overwrite an existing warp, default false |
creator
|
string | No | Creator label, default Panel |
Response Example
{
"success": true,
"name": "spawn",
"world": "default",
"x": 10.0,
"y": 64.0,
"z": -3.0
}
cURL
curl -X POST 'http://localhost:5550/api/warps' \
-H 'X-Admin-Token: YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"name": "spawn_hub", "player": "Eranio"}'
The name is required, and allowed are 1 to 32 characters from A to Z, a to z, 0 to 9, underscore and hyphen. It is stored in lowercase. If the warp already exists, you get success: false with "Warp already exists", unless you send replace: true. You take the position either from an online player (player, including their viewing direction) or via x, y, z and optionally world, in which case the viewing direction is 0. Errors such as "Invalid name", "Player not online", "Unknown world" or "Missing x, y, z or player" come with status 200 and success: false.
Internal Behavior
Registers the warp with TeleportPlugin and saves its warps.json.
POST
/api/warps/{name}/tp
Teleport to warp
Teleports an online player to the warp, also across worlds.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name
|
string | Yes | Warp ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
player
|
string | Yes | Online player |
Response Example
{
"success": true,
"player": "Steve",
"warp": "spawn",
"world": "default"
}
cURL
curl -X POST 'http://localhost:5550/api/warps/spawn_hub/tp' \
-H 'X-Admin-Token: YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"player": "Eranio"}'
The player must be online and the warp must exist, otherwise you get 200 with success: false and "Player not online" or "Warp not found". If the world of the warp is not loaded, the message is "World of this warp is not loaded". The old position goes into the teleport history of the player, so they can return with /back. If the teleport on the world thread takes longer than 3 seconds, success is false.
Internal Behavior
Adds an entry to the teleport history (/back) and a Teleport component.
DELETE
/api/warps/{name}
Delete warp
Removes a warp.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name
|
string | Yes | Warp ID |
Response Example
{
"success": true,
"name": "spawn"
}
cURL
curl -X DELETE 'http://localhost:5550/api/warps/spawn_hub' \
-H 'X-Admin-Token: YOUR_TOKEN'
The name is URL-decoded. If it does not exist, you get 200 with success: false and "Warp not found". On success, the response contains success: true and name.
Internal Behavior
Removes it from TeleportPlugin and saves.