seeing if seperate messages fixes the glitched death screen

This commit is contained in:
Bryson Steck 2021-08-25 17:23:25 -06:00
parent 8ccd61b231
commit 942b6b16c7
2 changed files with 2 additions and 1 deletions

View file

@ -118,7 +118,7 @@ public class PlayerListener implements Listener {
long resurrectionTime = System.currentTimeMillis() + Long.parseLong(parseSettings.getSetting("resurrection_time")); long resurrectionTime = System.currentTimeMillis() + Long.parseLong(parseSettings.getSetting("resurrection_time"));
e.setDeathMessage(e.getDeathMessage() + ". They will respawn in the next " + timeCheck.formatTime('f')); // e.setDeathMessage(e.getDeathMessage() + ". They will respawn in the next " + timeCheck.formatTime('f'));
// p.sendMessage("You have died!! You will be able to respawn in the next " + timeCheck.formatTime('h')); // p.sendMessage("You have died!! You will be able to respawn in the next " + timeCheck.formatTime('h'));
timerRunning = true; timerRunning = true;
@ -183,6 +183,7 @@ public class PlayerListener implements Listener {
} }
} }
}.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), timeToResurrection); }.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), timeToResurrection);
Bukkit.broadcastMessage("They will respawn in the next " + timeCheck.formatTime('f'));
} }
@EventHandler @EventHandler