Commit Graph

2156 Commits

Author SHA1 Message Date
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
16ea4625c9
Merge pull request #2100 from aurorasmiles/feat/buildlogic
Port buildlogic from WorldEdit
2024-07-21 23:30:40 -04: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
CyberFlame
c6fbfb87a3 remove double space 2024-07-05 17:02:51 +02:00
wizjany
fa357f4681
Back to snapshot.
Idk why we even to this for betas, they're not getting a maven release.
2024-06-26 18:58:10 -04:00
wizjany
a801a9d67a
Release 7.0.11-beta1. 2024-06-26 18:50:12 -04:00
wizjany
1bfae45484
Merge pull request #2089 from EngineHub/feat/mc-1.21
* Fix compilation for MC 1.21. Nothing tested yet.

* 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.

* Use ItemStack as-is.

Closes #2092.

* Fix ItemStack conversion for spigot compatibility

* Special handling for WindCharges

* Do not call as a bulk event, because it has to check every blocks type

* WindCharge -> AbstractWindCharge

* Fix UseBlockFlag for multiple uses at the same time, add windburst-flag

* Cleanup code

* Handle vaults as use, crafters as chest-access.

---------

Co-authored-by: Joo200 <github@joo200.de>
Co-authored-by: Lennart <1535717+lenis0012@users.noreply.github.com>
Co-authored-by: Brokkonaut <hannos17@gmx.de>
2024-06-26 18:48:35 -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
Joni Aromaa
ead1e1b77c
Fix checking bypass on initialize (#2082)
* Fix checking bypass on initialize

* Add SessionManager#createSession back as deprecated
2024-05-24 10:48:08 -04:00
aurora
8b7729e0e8
Fix silent flag for gameplay commands (#2081)
* Fix silent flag for gameplay commands

This issue has been fixed in CommandBook with
644803182e
but never in WorldGuard.

Co-authored-by: Wyatt Childers <DarkArc@users.noreply.github.com>

* codestyle
2024-05-23 13:05:29 -04:00
Joo200
d6ef5e9398 Remove adventure snapshot repository 2024-05-17 18:05:37 +02:00
wizjany
6f5501f7be
Bump to snapshot. 2024-05-14 18:14:06 -04:00
wizjany
d9424b1c71
Release 7.0.10. 2024-05-14 18:11:53 -04: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
2f93b26be0 Update dependencies to 1.20.6 2024-05-03 19:57:10 +02:00
wizjany
6bbf49314d
Merge pull request #2075 from EngineHub/feature/1.20.5
Update WorldGuard to 1.20.5
2024-05-02 12:12:15 -04: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
wizjany
3201cee1b7
Bump to snapshot. 2023-07-31 20:12:56 -04:00
wizjany
16a3c85005
Release 7.0.9. 2023-07-31 20:11:06 -04: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
Madeline Miller
fffb0c1f98
Bump to snapshot 2023-06-16 21:01:49 +10:00
Madeline Miller
223b80c590
Release 7.0.9-beta1 2023-06-16 20:59:43 +10: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
c61e9f1fe0 Update Readme to use https and Java 17 2023-06-16 09:50:37 +02:00
Joo200
64ccda4615 deps: Update WorldEdit to 7.2.14 2023-06-16 09:50:37 +02:00