Synchronize YamlRegionFile#saveAll (#2014) (048bd2ad by tomylobo)
Synchronize YamlRegionFile#saveAll
This prevents multiple invocations of the method from intersecting, which could potentially cause the .tmp file to be overwritten before being renamed, thus corrupting the region storage
Synchronize on the class instead of the instance
I didn't realize it before, but it looks like there is at least one instance of YamlRegionFile per world, so synchronizing on the instance wouldn't necessarily help.
Bump API version to 1.21.11 (4405a297 by aerulion)
Updated material definitions and dependencies for 1.21.11
- Updated Mojang-provided libraries to the correct version
- Added new Material and SpawnEgg definitions
- Fixed some missing item materials i missed during the previous commit, since I did not know items should also be covered (6697bab3 by aerulion)
Bump API version to 1.21.11 (cff2510c by aerulion)
Updated material definitions and dependencies for 1.21.11
- Updated Mojang-provided libraries to the correct version
- Added new Material and SpawnEgg definitions
- Fixed some missing item materials i missed during the previous commit, since I did not know items should also be covered (af098686 by aerulion)
Listen to EntityPushedByEntityAttackEvent for knockback/push (#2193)
Listening to the push event instead of EntityKnockbackByEntity includes other sources of knockback/push in the internal DamageEntityEvent.
Closes #2190. (98b52206 by wertík)
Consider decorated pots chest-access instead of interact.
Message is a bit awkward since it says "open that" but oh well.
Closes #2170. (2d96cdb9 by wizjany)
More comprehensive fishing rod checks.
Checks the retrieve (caught entity) for all non-hostiles (i.e. including vehicles now, checked with vehicle-destroy).
Also checks the projectile hit event, to prevent hooks from attaching pre-emptively.
Closes #2157, #2155. (9eadfdbc by wizjany)
Port outside repo usage elimination
Ports da223671a5e5d0107d502234d7378522db162e3c from WorldEdit to Worldguard and updates Gradle. (38ce4d42 by aurora)
Use PaperLib to get inventory holder (f89b1495 by jquery-package)
Drop spigot api as dependency in gradle (910b2412 by joo200)
Bump mojang libs.
Only affects api-users building against 1.21.4 mojang deps. (5f8e5eaf by wizjany)
Fix typo.
Only affected the config option, not the flag, so not too surprised it wasn't noticed earlier.
https://github.com/EngineHub/WorldGuard/pull/2115/files/679b56948f41869bd545564a8c57562f157a6b66#r1878791900 (89b6bdc1 by wizjany)
Back to snapshot.
Also update changelog cuz I forgot. (7ae07a94 by wizjany)
Initial update to 1.21.3.
Compiles, launches, nothing tested yet.
Boat tag includes chest boat tag.
Avoid Material.values call.
Split ride checks to separate event handler.
Bypass the interact entirely and let EntityMount handle it, since we can't discriminate usage in interact.
Fix deprecations on stack methods.
Also this was supposed to be on a branch but I just realized I forgot. (764d258e by wizjany)
Remove stack size bypassing perm.
Entire command should eventually be removed. (5579d197 by wizjany)
Avoid using metadata storage if possible (#2150) (3b9ab47a by joo200)
Use more snapshot-less holders on Paper.
This is already past the debounce so in theory it's not getting hit *often*, but I guess if it's really slow it'll still show up. (a0e397e5 by wizjany)
Merge pull request #2115 from EngineHub/feature/fix-breeze-stuff
Optimize and cleanup explosion events from entities
Fixes #2099 and #2097 (0f3ea504 by wizjany)
Split wind charge into breeze/player flags.
Player flag is build-checked (default false) and breeze flag is not (default true).
Having multiple flags is ugly but if we need every bit of behavior to be manipulable this is the only way. (679b5694 by wizjany)
Fix wind-charge-burst flag for player knockback (9dd7d7c0 by joo200)
Check mob-damage for potion splashes from e.g. witches.
Note that bypass bypasses this if the player with bypass is the target of the potion, but only for the player with bypass.
Fixes #2134. (b73a0a71 by wizjany)
Workaround books no longer sending change block for lecterns.
Fixes #2124. (2ea50689 by wizjany)
Extend use flag to all (trap)doors.
There's no tag which has wood+copper, but iron are not interactable anyway.
Relates to #2130. (aa46529e by wizjany)
Fix NPE for teleport events without target location
Fixes #2111 (8ffc81ad by joo200)
Merge pull request #2100 from aurorasmiles/feat/buildlogic
Port buildlogic from WorldEdit (16ea4625 by wizjany)
A bit of cleanup.
Definitely did not accidentally make a 40MB jar halfway through. (ca49458a by wizjany)
Port build-logic from WorldEdit (57492108 by aurora)
Update Materials.java with 1.21 tags and materials
Fix ItemStack conversion on block place on MC 1.21 (#2093)
Fix ItemStack conversion on block place
This issue is present in 1.21 because some materials do not convert 1:1 to item types.
This throws an exception in the ItemStack constructor.
Example: WALL_TORCH is a valid block but not a valid item, only TORCH is a valid item.
So, use the item in hand instead, creating a copy with quantity set to 1, for issueing the
use item event.
Fix UseBlockFlag for multiple uses at the same time, add windburst-flag (a5ea5115 by joo200)
WindCharge -> AbstractWindCharge (83298796 by brokkonaut)
Do not call as a bulk event, because it has to check every blocks type (8aa37e38 by brokkonaut)
Special handling for WindCharges (887f3bfa by brokkonaut)
Fix ItemStack conversion for spigot compatibility (6898ad86 by joo200)
Fix ItemStack conversion on block place on MC 1.21 (#2093) (7783e9ae by lennart)
Fix ItemStack conversion on block place
This issue is present in 1.21 because some materials do not convert 1:1 to item types.
This throws an exception in the ItemStack constructor.
Example: WALL_TORCH is a valid block but not a valid item, only TORCH is a valid item.
So, use the item in hand instead, creating a copy with quantity set to 1, for issueing the
use item event.
Update Materials.java with 1.21 tags and materials (2bd426ba by joo200)
Fix compilation for MC 1.21. Nothing tested yet. (27f00959 by wizjany)
Fix checking bypass on initialize (#2082) (ead1e1b7 by joni aromaa)
Fix checking bypass on initialize
Add SessionManager#createSession back as deprecated
Fix silent flag for gameplay commands (#2081) (8b7729e0 by aurora)
Fix silent flag for gameplay commands
This issue has been fixed in CommandBook with
https://github.com/EngineHub/CommandBook/commit/644803182ed1765a9862d0a0cd0d3763d399efee
but never in WorldGuard.
codestyle
Remove adventure snapshot repository (d6ef5e93 by joo200)