A simple and lightweight plugin to remove a very unfriendly boat exploit, if you ever experience server lag or even crashes from too many chunks being loaded then this is most likely your solution...
For most users it is as easy as putting it in your /plugin/
directory and that's it, if you want to specify commands to be ran or how the scan works then check the Configuration section below.
To exempt a person from these checks simply give them the permission boatexploit.exempt
The scan section is pre-configured with values that seem to work very well.
## WARNING ########################################
# #
# ONLY EDIT THE SCAN SECTION IF YOU KNOW WHAT #
# YOU ARE DOING, HAVING THE NUMBERS TOO LOW #
# WILL RESULT IN INNOCENT PLAYERS BEING AFFECTED! #
# #
######################################## WARNING ##
checks:
illegalMovement:
# How far are you allowed to move in one packet when riding something (-1 to disable check)
distance: 25
scan:
# How often the total chunks loaded is tallied in seconds
# Default: 2
time: 2
# How many chunks must be loaded to "trigger" the punishment
# Default: 200
chunkThreshold: 200
detection:
# The commands ran when a player is detected
# %player% will be replaced with the players name
commands:
- 'ban %player% Illegal movement (Boat exploit?)'
# Whether chunks should be cleaned up (unloaded) when a player is detected
# Default: true
chunkCleanup: true