mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Helmet and backpacks now show for player, server will store player creation date
(BugFix) /showhelmet and /showbackpack works and helmet/backpacks now showed for the person wearing the item (Code) Server will store player creation date for future use in baseline
This commit is contained in:
@@ -43,7 +43,7 @@ import engine.resources.scene.Planet;
|
||||
import engine.resources.scene.Point3D;
|
||||
import engine.resources.scene.Quaternion;
|
||||
|
||||
@Persistent(version=6)
|
||||
@Persistent(version=7)
|
||||
public class PlayerObject extends IntangibleObject {
|
||||
|
||||
// PLAY 3
|
||||
@@ -54,11 +54,13 @@ public class PlayerObject extends IntangibleObject {
|
||||
private List<Integer> flagsList = new ArrayList<Integer>();
|
||||
private List<Integer> profileList = new ArrayList<Integer>();
|
||||
private List<String> titleList = new ArrayList<String>();
|
||||
private int bornDate = 0;
|
||||
private long bornDate = 0;
|
||||
private int totalPlayTime = 0;
|
||||
private byte[] collections = new byte[] { };
|
||||
private int highestSetBit = 0;
|
||||
private int flagBitmask = 0;
|
||||
private boolean showHelmet = true;
|
||||
private boolean showBackpack = true;
|
||||
|
||||
// PLAY 6
|
||||
|
||||
@@ -180,13 +182,13 @@ public class PlayerObject extends IntangibleObject {
|
||||
return profileList;
|
||||
}
|
||||
|
||||
public int getBornDate() {
|
||||
public long getBornDate() {
|
||||
synchronized(objectMutex) {
|
||||
return bornDate;
|
||||
}
|
||||
}
|
||||
|
||||
public void setBornDate(int bornDate) {
|
||||
public void setBornDate(long bornDate) {
|
||||
synchronized(objectMutex) {
|
||||
this.bornDate = bornDate;
|
||||
}
|
||||
@@ -758,4 +760,32 @@ public class PlayerObject extends IntangibleObject {
|
||||
public void setHoloEmoteUses(int holoEmoteUses) {
|
||||
this.holoEmoteUses = holoEmoteUses;
|
||||
}
|
||||
|
||||
public boolean isShowHelmet() {
|
||||
return showHelmet;
|
||||
}
|
||||
|
||||
public void setShowHelmet(boolean showHelmet) {
|
||||
synchronized(objectMutex) {
|
||||
this.showHelmet = showHelmet;
|
||||
}
|
||||
|
||||
if (getContainer() != null) {
|
||||
getContainer().getClient().getSession().write(messageBuilder.buildShowHelmetDelta(showHelmet));
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isShowBackpack() {
|
||||
return showBackpack;
|
||||
}
|
||||
|
||||
public void setShowBackpack(boolean showBackpack) {
|
||||
synchronized(objectMutex) {
|
||||
this.showBackpack = showBackpack;
|
||||
}
|
||||
|
||||
if (getContainer() != null) {
|
||||
getContainer().getClient().getSession().write(messageBuilder.buildShowBackpackDelta(showBackpack));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user