Commit Graph

261 Commits

Author SHA1 Message Date
Joo200
ab48a66237 Merge branch 'refs/heads/version/7.0.x'
# Conflicts:
#	buildSrc/src/main/kotlin/GradleExtras.kt
#	buildSrc/src/main/kotlin/LibsConfig.kt
#	buildSrc/src/main/kotlin/PlatformConfig.kt
#	gradle.properties
#	worldguard-libs/bukkit/build.gradle.kts
2024-09-16 20:08:34 +02:00
wizjany
d9716a5bd8
Ignore arrow combustion.
Closes #2144.
2024-09-13 14:29:18 -04:00
wizjany
a0e397e57f
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.
2024-09-13 14:15:32 -04:00
wizjany
830472d36e
Revert previous changes to explosion event handling.
Event abstraction sucks and everything needs rewriting.
2024-09-13 11:46:06 -04:00
wizjany
03aac83f4c Match explosion flag coverage with EntityListener. 2024-09-13 10:00:48 -04:00
ploppyperson
cb011a88cf
Add moisture-change flag (#1879) (#2096)
* Create and implement moisture-change flag

* Fix imports

* Add comment

* Actually read the value from config.

Closes #1879 

---------

Co-authored-by: wizjany <wizjany@gmail.com>
2024-09-09 15:43:58 -04:00
wizjany
679b56948f
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.
2024-09-08 16:46:50 -04:00
Joo200
9dd7d7c03e
Fix wind-charge-burst flag for player knockback 2024-09-08 14:56:08 -04:00
Joo200
afb619d2ac
Fix breeze damage flags 2024-09-08 14:56:04 -04:00
wizjany
b73a0a7179
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.
2024-09-08 13:40:13 -04:00
wizjany
2ea50689b9
Workaround books no longer sending change block for lecterns.
Fixes #2124.
2024-09-08 12:51:00 -04:00
wizjany
70d225ef2f
Split chest boat ride/open. 2024-09-08 12:45:08 -04:00
wizjany
aa46529ecb
Extend use flag to all (trap)doors.
There's no tag which has wood+copper, but iron are not interactable anyway.

Relates to #2130.
2024-09-08 12:45:07 -04:00
Joo200
8ffc81ad74 Fix NPE for teleport events without target location
Fixes #2111
2024-07-22 21:42:44 +02:00
wizjany
ca49458a44
A bit of cleanup.
Definitely did not accidentally make a 40MB jar halfway through.
2024-07-21 23:26:45 -04:00
aurora
574921089b
Port build-logic from WorldEdit 2024-07-21 23:17:21 -04:00
wizjany
b269d7e264
Handle vaults as use, crafters as chest-access. 2024-06-26 18:17:55 -04:00
Joo200
af645ea2e4 Cleanup code 2024-06-26 22:34:29 +02:00
Joo200
a5ea5115f9 Fix UseBlockFlag for multiple uses at the same time, add windburst-flag 2024-06-26 22:30:33 +02:00
Brokkonaut
83298796ab WindCharge -> AbstractWindCharge 2024-06-26 21:39:21 +02:00
Brokkonaut
8aa37e389d Do not call as a bulk event, because it has to check every blocks type 2024-06-26 21:39:21 +02:00
Brokkonaut
887f3bfaec Special handling for WindCharges 2024-06-26 21:39:21 +02:00
Joo200
6898ad8674 Fix ItemStack conversion for spigot compatibility 2024-06-22 15:08:10 +02:00
Lennart
7783e9ae3b
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.

* Use ItemStack as-is.

Closes #2092.

---------

Co-authored-by: wizjany <wizjany@gmail.com>
2024-06-19 12:00:35 -04:00
Joo200
2bd426baf8 Update Materials.java with 1.21 tags and materials 2024-06-17 20:00:03 +02:00
wizjany
27f009594a
Fix compilation for MC 1.21. Nothing tested yet. 2024-06-16 21:48:35 -04:00
Joo200
d6ef5e9398 Remove adventure snapshot repository 2024-05-17 18:05:37 +02:00
aurora
65431c7df8 Fix fire placement by blocks when fire-spread is set to deny
Fixes #2070
2024-05-13 20:27:34 +02:00
Joo200
aa254c80e0 Merge branch 'refs/heads/version/7.0.x'
# Conflicts:
#	buildSrc/build.gradle.kts
2024-05-03 19:57:42 +02:00
Joo200
2f93b26be0 Update dependencies to 1.20.6 2024-05-03 19:57:10 +02:00
Joo200
4ad11151fe Fix compilation for 1.20.5 2024-04-28 15:39:15 +02:00
Joo200
c29edf7467 Fix Deprecations from WorldEdit 7.3.0 2024-04-28 15:36:52 +02:00
Joo200
da3c81a88d Update dependencies to 1.20.5 and jdk 21 2024-04-28 15:32:32 +02:00
Joo200
c65dd83a7e Don't show particles for denied interact events with dripleaf and redstone ores 2024-04-07 22:04:00 +02:00
Joo200
694195435d Bump Versions 2024-04-07 22:02:57 +02:00
Madeline Miller
0d824d375b Add a Paper fast-path for DoubleChest#getLeftSide when possible 2024-03-31 12:28:53 -04:00
aromaa
c7319f10dc Bump up respawn event priority to monitor 2023-09-11 21:25:47 -04:00
Joo200
c2b95f59a8 Paper only: Protect sign modifications as building 2023-08-22 14:34:52 +02:00
Joo200
5fa6f2a858 Update paper-api and spigot-api dependencies to 1.20.1 2023-08-22 14:34:26 +02:00
Joo200
02a8fd4c17 Merge remote-tracking branch 'origin/version/7.0.x'
# Conflicts:
#	gradle.properties
2023-08-14 14:21:50 +02:00
Joo200
5934e49489 Fix changed event for copper-fade flag 2023-07-30 18:34:12 +02:00
Joo200
58fbb6f008 Remove Support for 1.19 2023-07-30 18:20:02 +02:00
Joo200
fba8333de3 Fix backwards compatibility with 1.19.4 2023-06-21 22:20:42 +02:00
Joo200
8cbce96a2c Merge branch 'version/7.0.x' 2023-06-18 18:47:29 +02:00
Joo200
853631139d Update Protections to 1.20
* add new materials
* add protections for sniffer eggs
* add protection for signs
2023-06-16 09:50:37 +02:00
Joo200
16887c8540 deps: Update Paper to 1.20, snakeyml to 2.0 2023-06-16 09:50:37 +02:00
JOO200
8d5953a550 apidomains: Added custom domains to WorldGuard
This change allows third party plugins to dynamically add custom domains to WorldGuard.
2023-06-04 18:55:01 +02:00
Joo200
4a26e306b6 Consider the summon command as plugin spawning 2023-05-31 13:26:05 +02:00
wizjany
feb548aa84
Check movement on AbstractHorse instead of Horse.
Not tested cuz I don't know how to enable camels, but in theory this should work for that.
2023-05-16 17:04:28 -04:00
wizjany
961461c23c
Protect against allay pickups and modification.
Closes #1923.
2023-05-16 17:02:19 -04:00