BDS-api-http

CSR BDS-api-http 1.7.1

Source of resources
Original
Copyright link
#
Language
Multi-language
Supported version
  1. 1.16
  2. 1.15 (RTX)
  3. 1.14
  4. 1.13
  5. 1.12
  6. 1.11
  7. 1.10
  8. 1.9
  9. 1.8
  10. Earlier version
[CODE lang="json" title="config.json"]{
"cors": [ //允许的IP连接
"*" //填*为允许全部连接
],
"host": "+", //此项勿动
"port": 8081, //HTTP服务器监听的端口
"authKey": "c93c9a19-67b9-4852-bf6d-589c48fad76c", //authKey
"maxSession": 5, //最大会话数量
"deBug": true, //是否显示调试信息
"admin": {
"enable": false, //是否允许高级权限操作,例如文件(IO)操作
"key": "ef510c76-1b41-4b85-882f-094cbde1e0e5" //adminKey
},
"websocket": {
"enable": false, //是否允许websocket连接
"Port": 8082 //websocket监听的端口
},
"report": {
"enable": false, //是否开启上报
"onLoadName": false, //玩家入服是否上报
"onPlayerLeft": false, //玩家退服是否上报
"onMobDie": false, //生物死亡是否上报
"onInputCommand": false, //玩家指令是否上报
"onInputText": false, //玩家聊天是否上报
"onScoreChanged": false //计分板变更是否上报
},
"heartbeat": {
"enable": false, //是否开启心跳包
"delay": 60, //心跳包间隔,单位为秒
"destinations": [] //请求地址
}
}[/CODE]
API文档

HTTP-API接口HTTP类型
/authPOST
/admin/authPOST
/runcmdPOST
/sendTextPOST
/sendText/allPOST
/scoreboard/getPOST
/scoreboard/setPOST
/setServerMotdPOST
/setCommandDescribePOST
/releasePOST
/dir/makePOST
/dir/existsPOST
/file/existsPOST
/file/writePOST
/file/readPOST
/aboutGET
/getCmdReturnGET
/getOnlinePlayersGET
/getAllEventsGET
/getAllChatsGET
/getWhitelistGET
/releaseDataGET
/allWebsocket
  • Like
Reactions: yqs112358
Author
Lition
Price
20金粒
Downloads
95
Views
2,039
First release
Last update
Rating
5.00 star(s) 4 ratings

More resources from Lition

Share this resource

Latest reviews

1.18能用嗎
Lition
Lition
CSR适配了就能
dalao为什么我的返回全是 list的执行返回呢
Lition
Lition
加群952680774我给你看看
好耶好耶好耶
Lition
Lition
感谢支持
你是魔鬼吗?
Lition
Lition
滑稽(