- Admins
- AppSettings
- Blacklist
- ChatRecord
- CityLocation
- Goods
- HomeLocation
- Inventories
- ItemBlocks
- ItemIcons
- LandClaims
- Localization
- Locations
- Map
- Permissions
- Players
- PointsInfo
- Server
- TeleRecord
- Whitelist
- Settings
- AutoBackup
- CommandList
- ItemList
- VipGift
- PlayerSkills
- UiIcons
- Auth
- ColoredChat
- Prefab
获取所有在线玩家
GET
/api/OnlinePlayers
Players
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://7dtdserver.local:8888/api/OnlinePlayers'
返回响应
🟢200成功
application/json
Body
array of:
playerId
string
可选
playerName
string
可选
entityId
integer <int32>
可选
默认值:
-1
platformId
string
可选
ip
string
可选
ping
integer <int32>
可选
gameStage
integer <int32>
可选
playerDetails
可选
One of
isAdmin
boolean
可选
position
可选
lastSpawnPosition
可选
lastLogin
string <date-time>
可选
playerKills
integer <int32>
可选
zombieKills
integer <int32>
可选
deaths
integer <int32>
可选
score
integer <int32>
可选
stats
可选
level
integer <int32>
可选
expToNextLevel
integer <int32>
可选
skillPoints
integer <int32>
可选
landProtectionActive
boolean
可选
distanceWalked
number <float>
可选
totalItemsCrafted
integer
可选
longestLife
number <float>
可选
currentLife
number <float>
可选
totalTimePlayed
number <float>
可选
rentedVMPosition
可选
rentalEndTime
integer <uint64>
可选
rentalEndDay
integer <int32>
可选
spawnPoints
array[object (Position) {3}]
可选
alreadyCraftedList
array[string]
可 选
unlockedRecipeList
array[string]
可选
favoriteRecipeList
array[string]
可选
ownedEntities
array[object (OwnedEntity) {4}]
可选
pointsCount
integer <int32>
可选
示例
[
{
"playerId": "string",
"playerName": "string",
"entityId": -1,
"platformId": "string",
"ip": "string",
"ping": 0,
"gameStage": 0,
"playerDetails": {
"isAdmin": true,
"position": {
"x": 0,
"y": 0,
"z": 0
},
"lastSpawnPosition": {
"clrIdx": 0,
"position": {
"x": 0,
"y": 0,
"z": 0
},
"heading": 0
},
"lastLogin": "2019-08-24T14:15:22Z",
"playerKills": 0,
"zombieKills": 0,
"deaths": 0,
"score": 0,
"stats": {
"health": 0,
"stamina": 0,
"coreTemp": 0,
"food": 0,
"water": 0
},
"level": 0,
"expToNextLevel": 0,
"skillPoints": 0,
"landProtectionActive": true,
"distanceWalked": 0,
"totalItemsCrafted": 0,
"longestLife": 0,
"currentLife": 0,
"totalTimePlayed": 0,
"rentedVMPosition": {
"x": 0,
"y": 0,
"z": 0
},
"rentalEndTime": 0,
"rentalEndDay": 0,
"spawnPoints": [
{
"x": 0,
"y": 0,
"z": 0
}
],
"alreadyCraftedList": [
"string"
],
"unlockedRecipeList": [
"string"
],
"favoriteRecipeList": [
"string"
],
"ownedEntities": [
{
"id": 0,
"classId": 0,
"lastKnownPosition": {
"x": 0,
"y": 0,
"z": 0
},
"hasLastKnownPosition": true
}
],
"pointsCount": 0
}
}
]
修改于 2024-12-09 01:52:42