Addresses issue #286.

This commit is contained in:
Glitchfinder 2012-11-01 16:43:59 -07:00
parent be4e62fe9d
commit 61ae4826d1
2 changed files with 4 additions and 3 deletions

View File

@ -72,6 +72,7 @@ public class PtpCommand implements CommandExecutor {
player.teleport(target); player.teleport(target);
player.sendMessage(LocaleLoader.getString("Party.Teleport.Player", new Object[] { target.getName() })); player.sendMessage(LocaleLoader.getString("Party.Teleport.Player", new Object[] { target.getName() }));
target.sendMessage(LocaleLoader.getString("Party.Teleport.Target", new Object[] { player.getName() })); target.sendMessage(LocaleLoader.getString("Party.Teleport.Target", new Object[] { player.getName() }));
profile.setRecentlyHurt(System.currentTimeMillis());
} }
else { else {
player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] { target.getName() })); player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] { target.getName() }));

View File

@ -41,7 +41,7 @@ public class PlayerProfile {
private boolean abilityUse = true; private boolean abilityUse = true;
/* Timestamps */ /* Timestamps */
private int recentlyHurt; private long recentlyHurt;
private int respawnATS; private int respawnATS;
/* mySQL STUFF */ /* mySQL STUFF */
@ -826,11 +826,11 @@ public class PlayerProfile {
* Recently Hurt * Recently Hurt
*/ */
public int getRecentlyHurt() { public long getRecentlyHurt() {
return recentlyHurt; return recentlyHurt;
} }
public void setRecentlyHurt(int value) { public void setRecentlyHurt(long value) {
recentlyHurt = value; recentlyHurt = value;
} }