mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-09-29 14:13:03 -04:00
Fixed an issue where total time played would reset every log-in
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user