Commit Graph

13 Commits

Author SHA1 Message Date
9b69e80e8f Blocks usage of ender chests in clear regions 2024-01-13 01:23:01 +01:00
9af4f3f0e1 Recommends WorldGuard Extra Flags for WorldGuard in clear regions #7 2024-01-13 00:41:43 +01:00
71a2ae03f3 Fixes a problem in the spawn egg check 2024-01-12 21:29:43 +01:00
69a667dd95 Prevents clear region entry for players with items in their inventory 2024-01-12 01:22:04 +01:00
cd83c0404b Fixes #5 and implements #4
Only clears items when exiting a clear region
Tracks when a player enters one or more clear regions, through a custom event
Tracks when a player leaves one or more clear regions, through a custom event
Uses the tracker's region info to check if a player is in a clear region where possible
Excludes boats with player passengers from the vehicle move event, and requires that vehicles are in the clear region, not outside it
Tracks player clear regions when a player joins or changes world
Reduces a lot of code clutter and redundancy in WorldGuardListener
2024-01-11 23:50:13 +01:00
282cc50df6 Prevents more shenanigans
Prevents players from leashing entities in clear regions
Removes all entities riding, being ridden by and leashed to a player when moving across clear region borders
Adds bypass permissions for mob spawning and entity interaction
Adds a debug option
Splits listeners into three classes
Prevents more shenanigans I've forgotten
2024-01-10 18:56:35 +01:00
487e2682c3 Adds some more listeners
Prevents creepers from exploding in clear regions
Prevents dispensers from dispensing in clear regions
Prevents droppers from dropping in clear regions
Prevents blocks from burning in clear regions
Prevents blocks from igniting in clear regions, unless if flint and steel is used
Prevents entities from changing blocks
Prevents creature spawning, except for armor stands
Prevents indirect block item drops
Prevents blocks from dropping XP
Prevents entity damage
Prevents loot on entity death
Prevents blocks from forming and spreading
2024-01-10 02:07:08 +01:00
d73f4d5377 Adds a bunch of event cancellations
Blocks dropping items in a clear region
Blocks usage of XP bottles in a clear region
Block TNT priming in a clear region
Blocks placement of blocks across clear region borders
Blocks breaking of blocks across clear region borders
Blocks blocks inside clear regions from dropping items.
Prevents keeping inventory on death when in a clear region, and makes sure players' inventory is cleared upon death in a clear region, to avoid the potential of players outside the region picking up the items.
Prevents picking up items in a clear region
Prevents pistons from extending if it would push blocks across clear region borders
Prevents pistons from retracting if it would pull blocks across clear region borders
Prevents interacting with items across the clear region border
Prevents changing the mob inside spawners in clear regions
Prevents the usage of spawn eggs in clear regions
Changes Java version to 16
2024-01-09 23:47:53 +01:00
c9a2f082e2 Adds item clearing on teleportation 2024-01-09 20:24:22 +01:00
d3a1ed2145 Adds some missing annotations 2023-12-17 14:54:00 +01:00
37a773511d Adds info about how to configure the plugin 2023-12-17 04:07:51 +01:00
e233e5d918 Adds README 2023-12-17 03:59:36 +01:00
d12a38d39e Initial commit 2023-12-16 21:46:06 +01:00