mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Addresses issue #286.
This commit is contained in:
parent
be4e62fe9d
commit
61ae4826d1
@ -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() }));
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user