8 Commits

Author SHA1 Message Date
901b052b25 Improves some things
Makes sure to save the arena after editing allowed or loss trigger damage causes
Makes sure to save and restore player saturation
Adds damage animation and damage sound when faking damage for allowed damage causes
Plays a sound when a player loses
2024-05-16 15:00:16 +02:00
2ec15c69c7 Restores player health upon arena exit 2024-05-16 13:32:58 +02:00
81e652b4ff Stores potion effects for players in arenas 2024-04-04 23:29:56 +02:00
38839c0287 Re-implements the collision removal to fix a severe bug 2023-05-12 14:31:30 +02:00
7848a0a028 Implements #27 among other things
It was found that the Spigot API's methods for cancelling player collisions won't work without changing the scoreboard. Because of that, the normal option has been disabled. The invisibility option has also been removed, as that's a bad idea if players can still push each-other.
The toggle player option which is implemented in this commit does disable player collision, so that's the only working way right now.

A potential ConcurrentModificationException has been fixed.
The parkourCheckpoint command has been removed, as the functionality is now available through the API.
2023-05-10 15:14:28 +02:00
401490df58 Greatly improves handling of un-exited sessions #25 2023-04-26 13:12:14 +02:00
904761ba4e Finishes the changes for parkour arenas, hopefully 2023-04-15 18:29:58 +02:00
1acaebb3bc Parkour implementation safety save 2
This is just a safety save in case the code gets too broken to fix.
2023-04-13 20:13:29 +02:00