Re-added respawnATS

This commit is contained in:
bm01
2012-06-12 05:32:56 +02:00
parent 0034226fa7
commit c382c95d24
5 changed files with 36 additions and 13 deletions

View File

@ -48,12 +48,13 @@ public class PlayerProfile {
private boolean abilityuse = true;
/* Timestamps */
private int xpGainATS = 0;
private int recentlyHurt = 0;
private int xpGainATS;
private int recentlyHurt;
private int respawnATS;
/* mySQL STUFF */
private int lastlogin = 0;
private int userid = 0;
private int lastlogin;
private int userid;
HashMap<SkillType, Integer> skills = new HashMap<SkillType, Integer>(); //Skills and Levels
HashMap<SkillType, Integer> skillsXp = new HashMap<SkillType, Integer>(); //Skills and XP
@ -68,6 +69,7 @@ public class PlayerProfile {
hud = SpoutConfig.getInstance().defaulthud;
this.player = player;
this.playerName = player.getName();
lastlogin = ((Long) (System.currentTimeMillis() / 1000)).intValue();
party = PartyManager.getInstance().getPlayerParty(playerName);
@ -92,8 +94,6 @@ public class PlayerProfile {
addPlayer();
loaded = true;
}
lastlogin = ((Long) (System.currentTimeMillis() / 1000)).intValue();
}
public Player getPlayer() {
@ -913,6 +913,18 @@ public class PlayerProfile {
}
}
/*
* Exploit Prevention
*/
public int getRespawnATS() {
return respawnATS;
}
public void ActualizeRespawnATS() {
respawnATS = (int) (System.currentTimeMillis() / 1000);
}
/*
* XP Functions
*/