From 61ae4826d17e1f6d19bd1b885fb3a7c548f5499f Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Thu, 1 Nov 2012 16:43:59 -0700 Subject: [PATCH] Addresses issue #286. --- .../java/com/gmail/nossr50/commands/party/PtpCommand.java | 1 + .../java/com/gmail/nossr50/datatypes/PlayerProfile.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/party/PtpCommand.java b/src/main/java/com/gmail/nossr50/commands/party/PtpCommand.java index 9136fb4aa..86cadfb95 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/PtpCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/party/PtpCommand.java @@ -72,6 +72,7 @@ public class PtpCommand implements CommandExecutor { player.teleport(target); player.sendMessage(LocaleLoader.getString("Party.Teleport.Player", new Object[] { target.getName() })); target.sendMessage(LocaleLoader.getString("Party.Teleport.Target", new Object[] { player.getName() })); + profile.setRecentlyHurt(System.currentTimeMillis()); } else { player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] { target.getName() })); diff --git a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java index 794638369..b0b0c4f50 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java @@ -41,7 +41,7 @@ public class PlayerProfile { private boolean abilityUse = true; /* Timestamps */ - private int recentlyHurt; + private long recentlyHurt; private int respawnATS; /* mySQL STUFF */ @@ -826,11 +826,11 @@ public class PlayerProfile { * Recently Hurt */ - public int getRecentlyHurt() { + public long getRecentlyHurt() { return recentlyHurt; } - public void setRecentlyHurt(int value) { + public void setRecentlyHurt(long value) { recentlyHurt = value; }