7DaysToDie-ServerKit
  1. Players
7DaysToDie-ServerKit
  • Admins
    • Add admins
      POST
    • Get admins
      GET
    • Remove admins
      DELETE
  • AppSettings
    • AppSettings_Get
      GET
    • AppSettings_Put
      PUT
  • Blacklist
    • Add blacklist
      POST
    • Get blacklist
      GET
    • Remove blacklist
      DELETE
  • ChatRecord
    • 分页获取记录
      GET
    • 批量删除记录
      DELETE
    • 通过Id删除记录
      DELETE
  • CityLocation
    • 通过Id获取记录
      GET
    • 通过Id更新记录
      PUT
    • 通过Id删除记录
      DELETE
    • 获取所有记录
      GET
    • 新增记录
      POST
    • 批量删除记录
      DELETE
  • Goods
    • 通过Id获取记录
      GET
    • 通过Id更新记录
      PUT
    • 通过Id删除记录
      DELETE
    • 获取所有记录
      GET
    • 新增记录
      POST
    • 批量删除记录
      DELETE
    • 获取商品关联的物品清单
      GET
    • 修改商品关联的物品
      PUT
    • 获取商品关联的命令Id
      GET
    • 修改商品关联的命令
      PUT
  • HomeLocation
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 分页获取记录
    • 新增记录
    • 批量删除记录
  • Inventories
    • 获取指定玩家的背包
    • 批量删除指定玩家背包中的物品
    • 获取指定玩家的背包
    • 删除指定玩家背包中的物品
  • ItemBlocks
    • Get item and blocks.
  • ItemIcons
    • 获取 ItemIcon
  • LandClaims
    • 获取指定玩家的领地石
    • 获取所有玩家的领地石
  • Localization
    • 获取本地化字典
    • 获取指定项目的本地化字符串
    • 获取已知的语言
  • Locations
    • 获取位置
    • 获取位置
  • Map
    • 获取地图信息
    • 获取切片
    • 渲染整个地图
    • 渲染已探索区域
  • Permissions
    • Add permissions
    • Get permissions
    • Remove permissions
  • Players
    • 获取所有在线玩家
      GET
    • 获取指定在线玩家
      GET
    • 获取指定在线玩家
      GET
    • 分页获取历史玩家
      GET
    • 获取指定历史玩家
      GET
  • PointsInfo
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 分页获取记录
    • 新增记录
    • 批量删除记录
  • Server
    • Execute console command.
    • Get allowed commands.
    • Get allowed commands.
    • Get stats.
    • 系统信息
    • Get game infomation.
    • Get game infomation.
    • Send global message.
    • Send private message.
    • Restart server.
    • Shutdown server.
    • Reset Player.
    • Get server settings.
    • Put server settings.
  • TeleRecord
    • 分页获取记录
    • 批量删除记录
    • 通过Id删除记录
  • Whitelist
    • Add whitelist
    • Get whitelist
    • Remove whitelist
  • Settings
    • 获取配置
    • 更新配置
    • 重置配置
    • 获取配置
    • 更新配置
    • 重置配置
    • 获取配置
    • 更新配置
    • 重置配置
    • 获取配置
    • 更新配置
    • 重置配置
    • 获取配置
    • 更新配置
    • 重置配置
    • 获取配置
    • 更新配置
    • 重置配置
    • 获取配置
    • 更新配置
    • 重置配置
    • 获取配置
    • 更新配置
    • 重置配置
    • 获取配置
    • 更新配置
    • 重置配置
    • 获取配置
    • 更新配置
    • 重置配置
  • AutoBackup
    • 获取备份文件列表
    • 删除备份文件
    • 手动备份
  • CommandList
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 分页获取记录
    • 新增记录
    • 批量删除记录
  • ItemList
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 分页获取记录
    • 新增记录
    • 批量删除记录
  • VipGift
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 获取所有记录
    • 新增记录
    • 批量删除记录
    • 获取礼品关联的物品清单
    • 修改礼品关联的物品
    • 获取礼品关联的命令Id
    • 修改礼品关联的命令
  • PlayerSkills
    • Gets player progression
  • UiIcons
    • Get ui icon
  • Auth
    • OAuth_Token
  • ColoredChat
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 获取所有记录
    • 新增记录
    • 批量删除记录
  • Prefab
    • Get all available prefabs.
    • Place prefab.
    • Get undo history.
    • Undo prefab.
  1. Players

获取指定在线玩家

GET
/api/OnlinePlayers/{entityId}
Players

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
entityId
integer <int32>
必需

示例代码

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
Represents an online player for response model.
playerId
string 
可选
playerName
string 
可选
entityId
integer <int32>
可选
默认值:
-1
platformId
string 
可选
ip
string 
可选
Gets the IP address.
ping
integer <int32>
可选
Gets the ping value.
gameStage
integer <int32>
可选
Gets the game stage of the player.
playerDetails
可选
Gets the player details.
One of
Represents the details of a player.
isAdmin
boolean 
可选
Gets the player's admin status.
position
可选
Gets the position of the player.
lastSpawnPosition
可选
Gets the last spawn position of the player.
lastLogin
string <date-time>
可选
Gets the last login time of the player.
playerKills
integer <int32>
可选
Gets the number of kills by the player.
zombieKills
integer <int32>
可选
Gets the number of zombie kills by the player.
deaths
integer <int32>
可选
Gets the number of deaths by the player.
score
integer <int32>
可选
Gets the score of the player.
stats
可选
Gets the player stats.
level
integer <int32>
可选
Gets or sets the level of the player.
expToNextLevel
integer <int32>
可选
Gets or sets the experience required to reach the next level.
skillPoints
integer <int32>
可选
Gets or sets the skill points available for the player.
landProtectionActive
boolean 
可选
Gets a value indicating whether land protection is active for the player.
distanceWalked
number <float>
可选
Gets the distance walked by the player.
totalItemsCrafted
integer 
可选
Gets the total number of items crafted by the player.
longestLife
number <float>
可选
Gets the longest life of the player.
currentLife
number <float>
可选
Gets the current life of the player.
totalTimePlayed
number <float>
可选
Gets the total time played by the player in minutes.
rentedVMPosition
可选
Gets the rented VM position of the player.
rentalEndTime
integer <uint64>
可选
Gets the rental end time of the player.
rentalEndDay
integer <int32>
可选
Gets the rental end day of the player.
spawnPoints
array[object (Position) {3}] 
可选
Gets the spawn points of the player.
alreadyCraftedList
array[string]
可选
Gets the list of already crafted items by the player.
unlockedRecipeList
array[string]
可选
Gets the list of unlocked recipes by the player.
favoriteRecipeList
array[string]
可选
Gets the list of favorite recipes by the player.
ownedEntities
array[object (OwnedEntity) {4}] 
可选
Gets the list of owned entities by the player.
pointsCount
integer <int32>
可选
Gets or sets the count of points.
示例
{
    "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
上一页
获取所有在线玩家
下一页
获取指定在线玩家
Built with