Ive looked around and saw many ways to freeze a player, but Im wondering what would the most effective way/
For my SkyFreeze I did following: On freeze command add player to list On move: If player is in list > cancel
Use a Set not a List, they are generally faster. Cancelling PlayerMoveEvent causes buggy behaviour occasionally, so instead use event.setTo(event.getFrom())
Ohh right, thanks for telling me! Looks like I'll be having to modify my plugin when I can to do that
If you wish to do it this way, use the inventory close event. Spamming it doesnt help. I personally still do recommend setting walk and flight speed to 0