Im interested to know if theres a way to code a publicfuntion on whenever a player walks to a certain area they would be pushed back.
I'd use either PlayerMoveEvent or a task and check if the player is in the area. If he/she is, then use Player->setMotion() to push him/her back. Edit: Fixed a typo and added a link