mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-15 03:51:20 +01:00
fb6ac2ad5a
A cheat client could move such that they are inside of a block, but CraftBukkit will not fire an event, because the distance and looking direction don't change enough. Teleporting other players or yourself to that location would result in getting someone into a block. Consequently we also have to block commands like /sethome at such locations. Our first attempt to patch that will monitor teleports that use the TeleportCause.COMMAND (might miss out on plugins that are not using the appropriate cause, and on plugins that use items for teleportation), in addition we monitor certain commands (configurable prefixes), to catch things like "sethome" and "sethome2". The world spawn is exempted. Only teleports into blocks are monitored. This does not yet sanity-check the distance to the last tracked location, but it will ignore if none is set. |
||
---|---|---|
.. | ||
src | ||
pom.xml |