You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cancelling PlayerReadyArrowEvent for a crossssbow shoud lead to the arroww/firework rocket not beeing loaded into the crossbow.
Observed/Actual behavior
For the player the crossbow seems to be loaded with a projectile. However, relogging or interacting with the player inventory "resets" the item to show it's actually not loaded.
Steps/models to reproduce
@EventHandler
fun preventCrossbowFromShooting(event: PlayerReadyArrowEvent) {
if (event.bow.type == Material.CROSSBOW)
event.isCancelled = true
}
}
This only happens when there is no other itemstack in the player inventory which could be used as projectile.
Plugin and Datapack List
Plugins: Only my own plugin
Datapacks: only built-in
Paper version
This server is running Paper version 1.21.3-66-master@afb5b13 (2024-11-27T14:32:35Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
Other
No response
The text was updated successfully, but these errors were encountered:
Expected behavior
Cancelling PlayerReadyArrowEvent for a crossssbow shoud lead to the arroww/firework rocket not beeing loaded into the crossbow.
Observed/Actual behavior
For the player the crossbow seems to be loaded with a projectile. However, relogging or interacting with the player inventory "resets" the item to show it's actually not loaded.
Steps/models to reproduce
This only happens when there is no other itemstack in the player inventory which could be used as projectile.
Plugin and Datapack List
Plugins: Only my own plugin
Datapacks: only built-in
Paper version
This server is running Paper version 1.21.3-66-master@afb5b13 (2024-11-27T14:32:35Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
Other
No response
The text was updated successfully, but these errors were encountered: