Land

https://catpalm.net/api/land/${land.id}/

List of Restriction Codes

A Armor stands B Boats D Breaking blocks E Entity interactions F Item frames G Paintings H Harming entities I Interacting with blocks L Lecterns (reading books) M Minecarts P Placing blocks R Owners S Spawning entities T Triggers U Buckets V PvP (player vs. player combat) Y Flying

Get land information

GET https://catpalm.net/api/land/${land.id}/info

Path Parameters

Name
Type
Description

land.id*

int

Headers

Name
Type
Description

Authorization*

str

0 表示所有人

{
    "name": "XUAN's home",
    "players": {
        "0": "Y",
        "2": "AIMPRY"
    }
}

Set land information

PUT https://catpalm.net/api/land/${land.id}/info

Speed limit 0.2 sec/time The license must have the R-ownership of the land Requires land_change_permission permission

Path Parameters

Name
Type
Description

land.id*

int

Headers

Name
Type
Description

Authorization*

str

Request Body

Name
Type
Description

name

str

players

map

{"0":"Y","2":"AIMPRY"} 0 for all

Get land-specific player permission

GET https://catpalm.net/api/land/${land.id}/permission/${player.id}

Path Parameters

Name
Type
Description

player.id*

int

0 for all

land.id*

int

Headers

Name
Type
Description

Authorization*

str

ABDEFGHILMPRSTUVY

Set land-specific player permission

PUT https://catpalm.net/api/land/${land.id}/permission/${player.id}/${permissions}

The license must have the R-ownership of the land Requires land_change_permission permission

Path Parameters

Name
Type
Description

permissions*

str

ABDEFGHILMPRSTUVY

land.id*

int

player.id*

int

0 for all

Headers

Name
Type
Description

Authorization*

str

最后更新于