Events

Currency Events

EdDungeonsCurrencyAddEvent

Fired when: Currency is being added to a player's balance

Properties:

  • UUID uuid - Player receiving currency (read-only)

  • String currency - Currency type being added (modifiable)

  • BigDecimal amount - Base amount being added (modifiable)

  • double multiplier - Current multiplier applied (modifiable)

Methods:

  • addMultiplier(double multiplier) - Adds to the current multiplier

Enchantment Events

EdDungeonsEnchantTryProcEvent

Fired when: An enchantment attempts to activate/proc

Properties:

  • Player player - Player whose enchantment is trying to proc (read-only)

  • String enchant - Enchantment identifier (read-only)

  • double chance - Current activation chance 0.0-1.0 (modifiable)

Combat Events

EdDungeonsSwingSwordEvent

Fired when: A player swings a sword and deals damage to an entity

Properties:

  • Player player - Player who swung the sword (read-only)

  • int entityId - ID of the entity that was damaged (read-only)

  • int damageDealt - Amount of damage dealt (read-only)

Zone Events

EdDungeonsJoinZoneEvent

Fired when: A player enters a dungeon zone

Properties:

  • Player player - Player entering the zone (read-only)

  • String zoneId - Identifier of the zone being entered (read-only)

Last updated

Was this helpful?