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; }