MixerAPI - Additional APIs for LXL

LSE MixerAPI - Additional APIs for LXL 1.0.0

完成注册/登录后下载
版权类型
原创
版权链接
https://github.com/Development-studio/MixerAPI
语言支持
多语言
适配版本(基岩)
  1. 最新版本
Get script updates earlier on our GitHub: https://github.com/Development-studio/MixerAPI
Or Gitee: https://gitee.com/development-studio/MixerAPI
You can also find documentation for this API and beta versions here
[MD] # MixerAPI Easy to use API based on LXL and CJS. Adds some methods to increase your LXL scripting experiece ## Installation You have to install [LiteXLoader](https://github.com/LiteLDev/LiteXLoader "LiteXLoader") and [cjs.js](https://github.com/callstackexceed/cjs.js "CJS") to use this API. After everything is done, simply put the API script into `bds_folder/plugins/cjs` ## Usage To use MixerAPI, you have to put your script in `bds_folder/plugins/cjs` and add a `require` ###### Example:[/MD]
//This is your script<br> const api = require('./MixerAPI.js')<br> [MD] ## Documentation Documentation for every API method can be found in repo's [wiki](https://github.com/Development-studio/MixerAPI/wiki). **Attention! API may be changed in future** ## API usage examples ###### Ban/Unban[/MD]
//This is your script<br> const api = require('./MixerAPI.js')<br> <br> //MixerAPI is 100% compatible with LXL's JS API<br> mc.regPlayerCmd('ban', 'Ban any player', function(player, args){<br> let gameTag = args[0] //You can use XUID as well<br> let reason = args[1] //Optional, if == null, won't display ban reason for banned player<br> api.BanAPI.banByGametag(gameTag, reason)<br> })<br> <br> mc.regPlayerCmd('unban', 'unban player', function(player, args){<br> let gameTag = args[0] //You can use XUID as well<br> api.BanAPI.unbanByGametag(gameTag)<br> })
[MD] ###### Get player's experience[/MD]
//This is your script<br> const api = require('./MixerAPI.js')<br> //MixerAPI is 100% compatible with LXL's JS API<br> mc.regPlayerCmd("get","Get XP",function(pl,args){<br> pl.tell(`You have: ${api.ExperienceAPI.get(pl)}XP`);<br> });

If you want to contact me:
VK: vk.com/svtlng
Telegram: @bedrockova0
Discord: potatoguy#4531
Please, use english or russian (I don't know chinese at all)
  • 困惑
反馈: yqs112358
作者
TMGCH
下载
269
查看
1,704
首次发布
最后更新

评分

0.00 星 0 次评分
后退
顶部 底部