BentoBoxWorld / BentoBox

Expandable Minecraft server plugin for island-type games like SkyBlock or AcidIsland.
https://bentobox.world
Eclipse Public License 2.0
323 stars 134 forks source link

SHEARING flag can't protect Bogged #2420

Closed huguyt closed 2 weeks ago

huguyt commented 2 weeks ago

Expected behavior

When a player without permission uses shears on a Bogged, Will not cut mushrooms.

Observed/Actual behavior

Cut off the mushroom.

Steps/models to reproduce

Create an island and let player without SHEARING permission to right-click Bogged with shears.

BentoBox version

bbox version 16:13:52 INFO: Running PAPER 1.21.

16:13:52 INFO: BentoBox version: 2.4.1-SNAPSHOT-b2656 16:13:52 INFO: Database: JSON 16:13:52 INFO: Loaded Game Worlds: 16:13:52 INFO: bskyblock_world (BSkyBlock): Overworld, Nether, The End 16:13:52 INFO: Loaded Addons: 16:13:52 INFO: BSkyBlock 1.18.0-SNAPSHOT-b764 (ENABLED)

Plugin list

plugins [16:14:11 INFO]: Server Plugins (3): [16:14:11 INFO]: Bukkit Plugins: [16:14:11 INFO]: - BentoBox, BentoBox-BSkyBlock, FastAsyncWorldEdit

Other

Like sheep, mooshroom, snow golem, these will be protected by the SHEARING flag, Please add Bogged to SHEARING flag.

tastybento commented 2 weeks ago

Spigot (or Paper) 1.21 does not fire the PlayerShearEntityEvent for Bogged yet. I'll file a bug.

tastybento commented 2 weeks ago

Filed bug with Spigot: https://hub.spigotmc.org/jira/browse/SPIGOT-7814

tastybento commented 2 weeks ago

A PR has been submitted for SPIGOT-7814. There is a desync issue where the shearing will seem to occur on the client even though it has been canceled. Relog will fix it. They are not sure how to fix that, but at least the shearing should be prevented.

huguyt commented 2 weeks ago

Many thanks!

tastybento commented 2 weeks ago

Spigot has fixed this. It should make its way to Paper soon. I'll close this for now.