Fixed an issue where total time played would reset every log-in

This commit is contained in:
Ziggy
2015-05-09 01:42:46 +02:00
parent dbf52dd72b
commit cf88aad5f8
4 changed files with 21 additions and 1 deletions
@@ -93,6 +93,8 @@ public class PlayerObject extends IntangibleObject {
private SWGList<String> petAbilities = new SWGList<>(BaselineType.PLAY, 9, 21);
private SWGList<String> activePetAbilities = new SWGList<>(BaselineType.PLAY, 9, 22);
// Ziggy: Non-PLAY0x variable
private int startPlayTime;
public PlayerObject(long objectId) {
super(objectId);
@@ -539,4 +541,12 @@ public class PlayerObject extends IntangibleObject {
public void sendDelta(int type, int update, Object value, StringType strType) {
sendDelta(BaselineType.PLAY, type, update, value, strType);
}
public int getStartPlayTime() {
return startPlayTime;
}
public void setStartPlayTime(int startPlayTime) {
this.startPlayTime = startPlayTime;
}
}