Source of resources
Original
Copyright link
https://github.com/Development-studio/MixerAPI
Language
Multi-language
Supported version
  1. The latest version
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)
  • Emm
Reactions: yqs112358
Author
TMGCH
Downloads
224
Views
1,439
First release
Last update
Rating
0.00 star(s) 0 ratings

Share this resource