RTClarkV / MapProtect

An efficient Minecraft plugin to protect builds from griefing while allowing many basic game mechanics for players.
1 stars 1 forks source link

Efficient player detector #29

Closed RTClarkV closed 8 months ago

RTClarkV commented 8 months ago

This might be a bit more inefficient running at 1/4 second intervals, but pushing back the player is really smooth. I also made a fail safe, so if the player is pushed back 3-4 times and they are not outside/inside the box yet, they will be teleported to their last known legal position. The only way to get out of the box is to be teleported in or out by a command or other plugin.