From 38c5b071be71ce705e08f7efdfef6e2a77f63134 Mon Sep 17 00:00:00 2001 From: maxxie114 Date: Sat, 13 Apr 2019 04:27:11 -0700 Subject: [PATCH] Fix most of the issues in TODO list 1. Fix death message for lightning 2. Fix most of the tag conversion issues. --- .../Listener/PlayerDeathListener.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/_2b2tmcpe/CustomDeathMessage/Listener/PlayerDeathListener.java b/src/main/java/org/_2b2tmcpe/CustomDeathMessage/Listener/PlayerDeathListener.java index 68993a3..6e8bc04 100644 --- a/src/main/java/org/_2b2tmcpe/CustomDeathMessage/Listener/PlayerDeathListener.java +++ b/src/main/java/org/_2b2tmcpe/CustomDeathMessage/Listener/PlayerDeathListener.java @@ -38,11 +38,11 @@ /* * TODO Fix unable to convert config tags in: (Player) * KILL_BY_WEAPON: got killed by using - * MOB_ATTACK: got killed by - * PROJECTILE: got shot by - * ENTITY_EXPLOSION: Blew to pieces by + * MOB_ATTACK: got killed by + * PROJECTILE: got shot by #DONE + * ENTITY_EXPLOSION: Blew to pieces by #DONE * - * TODO Fix unrecognized death cause in LIGHTNING + * TODO Fix unrecognized death cause in LIGHTNING #DONE */ @@ -135,9 +135,6 @@ public String getDeathMessage(DamageCause cause, String playerName) { case BLOCK_EXPLOSION: deathMessage = this.conf.getString("BLOCK_EXPLOSION"); break; - case LIGHTNING: - deathMessage = this.conf.getString("LIGHTNING"); - break; case VOID: deathMessage = this.conf.getString("VOID"); break;