aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/player
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-08-25 00:23:03 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-08-25 00:23:03 -0600
commit90bf30acfe869e17cf4209465f67cd70919c63b0 (patch)
tree099300dd7eaee5b30c8c0c7bee1ff3843150345e /src/net/brysonsteck/Resurrection/player
parent9764af18a7bd1e9c9564993bccf7826e565ec7c7 (diff)
downloadresurrection-90bf30acfe869e17cf4209465f67cd70919c63b0.tar
resurrection-90bf30acfe869e17cf4209465f67cd70919c63b0.tar.gz
resurrection-90bf30acfe869e17cf4209465f67cd70919c63b0.tar.bz2
did some cleanup for transtioning out of beta
Diffstat (limited to 'src/net/brysonsteck/Resurrection/player')
-rw-r--r--src/net/brysonsteck/Resurrection/player/PlayerListener.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/brysonsteck/Resurrection/player/PlayerListener.java b/src/net/brysonsteck/Resurrection/player/PlayerListener.java
index 8a6a78f..9648f69 100644
--- a/src/net/brysonsteck/Resurrection/player/PlayerListener.java
+++ b/src/net/brysonsteck/Resurrection/player/PlayerListener.java
@@ -70,8 +70,8 @@ public class PlayerListener implements Listener {
}
if (resumeDeath && !timerRunning) {
// spawn = p.getLocation();
- p.sendMessage(ChatColor.RED + "You are still dead. To check how long you have left before you are resurrected, " +
- "run \"howlong\" in chat.");
+ p.sendMessage(ChatColor.RED + "You are still dead. To check how long you have left before you are resurrected, ");
+ p.sendMessage(ChatColor.RED + "run the \"/howlong\" command in chat.");
new BukkitRunnable() {
@Override
public void run() {
@@ -111,14 +111,15 @@ public class PlayerListener implements Listener {
@EventHandler
public void onDeath(PlayerDeathEvent e) {
- System.out.println("Resurrection: A player has died!");
+ System.out.println("[Resurrection] A player has died!");
Player p = e.getEntity();
stillDead = true;
TimeCheck timeCheck = new TimeCheck(Long.parseLong(parseSettings.getSetting("resurrection_time")));
long resurrectionTime = System.currentTimeMillis() + Long.parseLong(parseSettings.getSetting("resurrection_time"));
- p.sendMessage("You have died!! You will be able to respawn in the next " + timeCheck.formatTime('h'));
+ 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'));
timerRunning = true;
// save death state