From c2383d9644d412bf1d00189b44bba4fa95ae8816 Mon Sep 17 00:00:00 2001 From: Brianna Date: Wed, 7 Aug 2019 00:08:19 -0400 Subject: [PATCH] Added lava damage. --- src/main/java/com/songoda/epicenchants/enums/TriggerType.java | 1 + .../com/songoda/epicenchants/listeners/EntityListener.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/com/songoda/epicenchants/enums/TriggerType.java b/src/main/java/com/songoda/epicenchants/enums/TriggerType.java index e904bf5..ed289ca 100644 --- a/src/main/java/com/songoda/epicenchants/enums/TriggerType.java +++ b/src/main/java/com/songoda/epicenchants/enums/TriggerType.java @@ -20,6 +20,7 @@ public enum TriggerType { EXPLOSION_DAMAGE, FALL_DAMAGE, FIRE_DAMAGE, + LAVA_DAMAGE, POISON_DAMAGE, HELD_ITEM, diff --git a/src/main/java/com/songoda/epicenchants/listeners/EntityListener.java b/src/main/java/com/songoda/epicenchants/listeners/EntityListener.java index c749093..6b7e2b0 100644 --- a/src/main/java/com/songoda/epicenchants/listeners/EntityListener.java +++ b/src/main/java/com/songoda/epicenchants/listeners/EntityListener.java @@ -103,6 +103,9 @@ public class EntityListener implements Listener { case FIRE_TICK: instance.getEnchantUtils().handlePlayer(((Player) event.getEntity()), null, event, FIRE_DAMAGE); break; + case LAVA: + instance.getEnchantUtils().handlePlayer(((Player) event.getEntity()), null, event, LAVA_DAMAGE); + break; case BLOCK_EXPLOSION: case ENTITY_EXPLOSION: instance.getEnchantUtils().handlePlayer(((Player) event.getEntity()), null, event, EXPLOSION_DAMAGE);