This repository explains how to limit the clicks per second (cps) of a Badlion Client user via a simple Bungee/Bukkit plugin.
By default there is no limitation to how fast you can click with the Badlion Client.
How to install the Badlion Client CPS API on your server.
- Download either the latest bukkit or bungee plugin from our releases (you don't need both, we recommend using the BungeeCord plugin if you are running BungeeCord): https://github.com/BadlionNetwork/BadlionClientCPSAPI/releases
- Place the downloaded plugin into your
plugins
directory on your server. - Turn on the BungeeCord or Bukkit server and a default config will be automatically made in
plugins/BadlionClientCPSAPI/config.json
- Edit the config as you see fit and reboot the server after you have finished editing the config (see below for more information).
- Clone this repository
- Compile the plugin(s) you want to use (you only need one per Minecraft network).
- Place the compiled plugins from the
target
directories into yourplugins
directory on your server. - Turn on the BungeeCord or Bukkit server and a default config will be automatically made in
plugins/BadlionClientCPSAPI/config.json
- Edit the config as you see fit and reboot the server after you have finished editing the config (see below for more information).
To make a config place the information below example into plugins/BadlionClientCPSAPI/config.json
. If you have any JSON errors it will not load the plugin properly. A quick and easy way to test that your JSON config is valid is to use this tool: https://jsonformatter.curiousconcept.com/
This example config will limit a user to 20 clicks per second (cps) when playing on your server with the Badlion Client.
{
"clicksPerSecondLimit": 20,
"clicksPerSecondLimitRight": 20
}
The first value clicksPerSecondLimit
is for left click and the second value clicksPerSecondLimitRight
is for right click.