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.
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.