- 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
Gets all currently online players
GET
/v1/players
Player
请求参数
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/players'
返回响应
🟢200OK
application/json
Body
balance
number <double>
可选
uuid
string
可选
displayName
string
可选
address
string
可选
port
integer <int32>
可选
exhaustion
number <float>
可选
exp
number <float>
可选
whitelisted
boolean
可选
banned
boolean
可选
op
boolean
可选
location
array[number <double>]
可选
dimension
enum<string>
可选
枚举值:
NORMALNETHERTHE_ENDCUSTOM
health
number <double>
可选
hunger
integer <int32>
可选
saturation
number <float>
可选
gamemode
enum<string>
可选
枚举值:
CREATIVESURVIVALADVENTURESPECTATOR
lastPlayed
integer <int64>
可选
示例
{
"balance": 0,
"uuid": "string",
"displayName": "string",
"address": "string",
"port": 0,
"exhaustion": 0,
"exp": 0,
"whitelisted": true,
"banned": true,
"op": true,
"location": [
0
],
"dimension": "NORMAL",
"health": 0,
"hunger": 0,
"saturation": 0,
"gamemode": "CREATIVE",
"lastPlayed": 0
}
修改于 2023-08-27 05:14:55