- Sample APIs
- Advancement
- Chat
- Economy
- Server
- pong!GET
- Get information about the scoreboard objectivesGET
- Get information about a specific objectiveGET
- Get information about the serverGET
- Executes a command on the server from the console, returning it's output. Be aware that not all command executors will properly send their messages to the CommandSender, though, most do.POST
- Get the whitelistGET
- Update the whitelistPOST
- Delete specific player from the whitelistDELETE
- Get information about all worldsGET
- Downloads a ZIP compressed archive of all the worlds' foldersGET
- Triggers a world save of all worldsPOST
- Get information about a specific worldGET
- Downloads a ZIP compressed archive of the world's folderGET
- Triggers a world savePOST
- PlaceholderAPI
- Player
- Plugins
Get information about the server
GET
/v1/server
Server
请求参数
Header 参数
key
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/v1/server'
返回响应
🟢200OK
application/json
Body
name
string
可选
health
object (ServerHealth)
可选
cpus
integer <int32>
可选
uptime
integer <int64>
可选
totalMemory
integer <int64>
可选
maxMemory
integer <int64>
可选
freeMemory
integer <int64>
可选
motd
string
可选
version
string
可选
tps
string
可选
bukkitVersion
string
可选
bannedIps
array[object (ServerBan) {4}]
可选
target
string
可选
source
string
可选
reason
string
可选
expiration
string <date>
可选
bannedPlayers
array[object (ServerBan) {4}]
可选
target
string
可选
source
string
可选
reason
string
可选
expiration
string <date>
可选
whitelistedPlayers
array[object (Whitelist) {2}]
可选
uuid
string
可选
name
string
可选
maxPlayers
integer <int32>
必需
onlinePlayers
integer <int32>
必需
示例
{
"name": "string",
"health": {
"cpus": 0,
"uptime": 0,
"totalMemory": 0,
"maxMemory": 0,
"freeMemory": 0
},
"motd": "string",
"version": "string",
"tps": "string",
"bukkitVersion": "string",
"bannedIps": [
{
"target": "string",
"source": "string",
"reason": "string",
"expiration": "2019-08-24"
}
],
"bannedPlayers": [
{
"target": "string",
"source": "string",
"reason": "string",
"expiration": "2019-08-24"
}
],
"whitelistedPlayers": [
{
"uuid": "string",
"name": "string"
}
],
"maxPlayers": 0,
"onlinePlayers": 0
}
修改于 2023-08-27 05:14:55