mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Fixed bug where the PTP cooldown was set improperly.
This commit is contained in:
parent
0d2b87834c
commit
31fff0623d
@ -14,6 +14,7 @@ Version 1.4.01-dev
|
|||||||
= Fixed bug where repairing an mcMMO ability-buffed item with mcMMO repair could take the enchant but leave the lore tag
|
= Fixed bug where repairing an mcMMO ability-buffed item with mcMMO repair could take the enchant but leave the lore tag
|
||||||
= Fixed bug where using '/party chat message...' would result in the first word of the message being printed repeatedly
|
= Fixed bug where using '/party chat message...' would result in the first word of the message being printed repeatedly
|
||||||
= Fixed bug where the wrong flag was being set when taking damage
|
= Fixed bug where the wrong flag was being set when taking damage
|
||||||
|
= Fixed bug where the PTP cooldown was set improperly
|
||||||
|
|
||||||
Version 1.4.00
|
Version 1.4.00
|
||||||
+ Added new Child Skill - Smelting!
|
+ Added new Child Skill - Smelting!
|
||||||
|
@ -213,7 +213,7 @@ public class PtpCommand implements CommandExecutor {
|
|||||||
player.teleport(target);
|
player.teleport(target);
|
||||||
player.sendMessage(LocaleLoader.getString("Party.Teleport.Player", target.getName()));
|
player.sendMessage(LocaleLoader.getString("Party.Teleport.Player", target.getName()));
|
||||||
target.sendMessage(LocaleLoader.getString("Party.Teleport.Target", player.getName()));
|
target.sendMessage(LocaleLoader.getString("Party.Teleport.Target", player.getName()));
|
||||||
mcMMOPlayer.getProfile().setRecentlyHurt(System.currentTimeMillis());
|
mcMMOPlayer.getProfile().actualizeRecentlyHurt();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ public class PlayerProfile {
|
|||||||
private boolean displaySkillNotifications = true;
|
private boolean displaySkillNotifications = true;
|
||||||
|
|
||||||
// Timestamps
|
// Timestamps
|
||||||
private long recentlyHurt;
|
private int recentlyHurt;
|
||||||
private int respawnATS;
|
private int respawnATS;
|
||||||
|
|
||||||
// mySQL Stuff
|
// mySQL Stuff
|
||||||
@ -906,11 +906,11 @@ public class PlayerProfile {
|
|||||||
* Recently Hurt
|
* Recently Hurt
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public long getRecentlyHurt() {
|
public int getRecentlyHurt() {
|
||||||
return recentlyHurt;
|
return recentlyHurt;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRecentlyHurt(long value) {
|
public void setRecentlyHurt(int value) {
|
||||||
recentlyHurt = value;
|
recentlyHurt = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user