KitBattleAntiGlitch is an plugin which aims to prevent every glitch assoicated with KitBattle Advanced. We achieve this through multiple methods, like accessing the KitBattle's API & Events for certain checks.
Requirements In order to use the plugin on your server, you must have:
Java 8+
Spigot 1.8.8+
KitBattle Advanced
As of 1.0, this plugin was tested with PandaSpigot 1.8.8 and KitBattle 9.4. We also advise using the plugins with Bungee Mode on.
Patched Glitches
The Soup Glitch is when you deal the same damage as a sword with a soup. This is a known bug for years and years now and yet have to be patched by many servers.
We prevent this by not allowing players to move their items around when theres no kit selected. This is crucial for the glitch to work, therefore patches it.
In config.yml, its listed as "prevent-moving-items".
The Strength Glitch is when you use 2 kits at the same time. This is a known bug for a year although there are 2 pretty simple patches. We prevent this by either disabling the command /kb selectkit and /kitbattle selectkit or checking if the player called the selectkit event 2 times. In config.yml, its listed as either "block-kitbattle-commands" or "mixing-kits".
The Spiderman glitch is when you use the Spiderman kit to mess with the map. This includes breaking ladders/signs, placing blocks with other kits (like Prisoner and Burrower) and more.
We prevent this by only placing cobwebs if the "block" was identified as air. This is a simple solution and patches about every glitch assoicated with Spiderman.
This is apart of an ability called "SpidermanFixed".
The Dracula glitch is when you keep your deathstreak effects until you die - not when you kill someone. This is basically what I like to call, a lite version of the Strength Glitch. You can do this with any kit you like, and you keep the effects it until you die. We prevent this by checking if the nearby players have a deathstreak higher then 0, and if they do it will not take any effects off them. This is subject to change over the versions. If deathstreaks are disabled on your server, you do not need this. This is apart of an ability called "DraculaFixed".
Permissions There are 2 permissions assoicated with this plugin:
kbag.glitchbypass - Bypasses all patches (excluding ability patches) even if they are enabled
kbag.reload - Permission to reload the config
Config
Code (YAML):
# KitBattleAntiGlitch 1.0 - Fixing every glitch on KitBattle Advanced to make some SoupPVP servers a better place. # So far, I have managed to patch majority of public glitches known on KitBattle! # If someone has the perms "kbag.glitchbypass", it will allow them to move items and use KitBattle commands, even # If you have any other glitches, please join my discord (discord.gg/mineblaze) or add me on discord (@xlzxq) and let me know! prefix: "&6[&eKitBattleAntiGlitch&6]&f "
# Block KitBattle SelectKit command - disables the selectkit command, which can easily patch glitches like the Strength glitch. block-kitbattle-commands: true
# Prevent moving items - doesn't allow you to move items in inventory while there is no kits selected, which can patch glitches like the Soup glitch. prevent-moving-items: true
# Mixing Kits (Strength Glitch) - prevents a player from selecting a kit while having a kit which basically patches the Strength glitch. You do not need this if block-kitbattle-commands is enabled. mixing-kits:
enable: true
spawn-enabled: false
Showcase
Please note that we aren't affiliated with KitBattle Advanced! This plugin is just a simple add-on to improve the plugin itself.