Events

How to create events

Those are the current events on the plugin:

DamageEvent:
  Special variables:
    attacker -> Player who attacked
    victim -> Entity that got damaged
    cause -> DamageCause of the event
    event -> The event itself (you can do core.cancelEvent(event) to cancel it like it never happened)
    damage -> The amount of damage dealt item -> Item used to damage
    item -> Item used to attack
  Usage:
    item.setDamageEvent(core.createRunnable("<code>"))

Last updated