forked from MagicBane/Server
PVE flag
This commit is contained in:
@@ -21,7 +21,7 @@ public enum CharacterTitle {
|
||||
CSR_3(255, 0, 0, "CCR"),
|
||||
CSR_4(251, 181, 13, "CCR"),
|
||||
DEVELOPER(166, 153, 114, "Programmer"),
|
||||
PVE(0, 255, 0, ""),
|
||||
PVE(0, 255, 0, "PvE"),
|
||||
QA(88, 250, 244, "GIRLFRIEND");
|
||||
|
||||
int headerLength, footerLength;
|
||||
@@ -72,10 +72,10 @@ public enum CharacterTitle {
|
||||
char[] chars = firstName.toCharArray();
|
||||
|
||||
if (smallString)
|
||||
writer.put((byte) (chars.length + this.headerLength));
|
||||
writer.put((byte) (chars.length + this.footerLength));
|
||||
else
|
||||
writer.putInt(chars.length + this.headerLength);
|
||||
writer.putBB(header);
|
||||
writer.putInt(chars.length + this.footerLength);
|
||||
writer.putBB(footer);
|
||||
|
||||
for (char c : chars) {
|
||||
writer.putChar(c);
|
||||
@@ -101,21 +101,21 @@ public enum CharacterTitle {
|
||||
char[] chars = lastName.toCharArray();
|
||||
|
||||
if (smallString)
|
||||
writer.put((byte) (chars.length + this.footerLength));
|
||||
writer.put((byte) (chars.length + this.headerLength));
|
||||
else
|
||||
writer.putInt(chars.length + this.footerLength);
|
||||
writer.putInt(chars.length + this.headerLength);
|
||||
|
||||
for (char c : chars) {
|
||||
writer.putChar(c);
|
||||
}
|
||||
|
||||
writer.putBB(footer);
|
||||
writer.putBB(header);
|
||||
} else {
|
||||
if (smallString)
|
||||
writer.put((byte) this.footerLength);
|
||||
writer.put((byte) this.headerLength);
|
||||
else
|
||||
writer.putInt(this.footerLength);
|
||||
writer.putBB(footer);
|
||||
writer.putInt(this.headerLength);
|
||||
writer.putBB(header);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user