DenizenScript / Denizen

NPC and general Spigot scripting, using the Denizen Scripting Language!
https://denizenscript.com/
MIT License
213 stars 106 forks source link

Add paper-only PlayerShieldDisable event #2640

Closed Hydroxycobalamin closed 3 weeks ago

Hydroxycobalamin commented 2 months ago

This PR adds the new 1.20+ paper-only PlayerShieldDisableEvent as "player shield disables" Denizen event with following contexts and determinations.

Context

<context.damager> returns an EntityTag of the attacker <context.cooldown> returns a DurationTag of the cooldown.

Determinations

"COOLDOWN:<DurationTag>" to change the cooldown.