Hi So currently in my plugin, players are teleported back to spawn when they leave the arena. This is done by checking every second if the player is in the arena or not. However, I would much rather just block people from leaving the arena. What's the easiest way of implementing this? Would I be forced to use a PlayerMoveEvent as I can cancel that, or is there another way?. Thanks in advance for any help!
teej107 Alright. I was looking to see if there was a way to not use the player move event, but if this is the only way, then thanks.
TopTobster5 You can use a scheduledSyncRepeatingTask instead and iterate over each player and see if they are in the boundaries as well. No events needed.
teej107 How would I cancel their movement and move them back into the arena? I already scan through the players and move them back to the spawn, but I w0uld rather they just get stopped.