From 16df24ea272b164fc84567a3f6a854d01316c308 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 11 Mar 2025 20:36:05 -0500 Subject: [PATCH] remove name form PVE title --- src/engine/objects/CharacterTitle.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/objects/CharacterTitle.java b/src/engine/objects/CharacterTitle.java index 95f94511..15b23f22 100644 --- a/src/engine/objects/CharacterTitle.java +++ b/src/engine/objects/CharacterTitle.java @@ -26,6 +26,13 @@ public enum CharacterTitle { (((_g < 100) ? ((_g < 10) ? "00" : "0") : "") + ((byte) _g & 0xFF)) + (((_b < 100) ? ((_b < 10) ? "00" : "0") : "") + ((byte) _b & 0xFF)) + '<' + _prefix + "> ").toCharArray(); + if (_prefix.equals("")) { + str_header = ("^\\c" + + (((_r < 100) ? ((_r < 10) ? "00" : "0") : "") + ((byte) _r & 0xFF)) + + (((_g < 100) ? ((_g < 10) ? "00" : "0") : "") + ((byte) _g & 0xFF)) + + (((_b < 100) ? ((_b < 10) ? "00" : "0") : "") + ((byte) _b & 0xFF)) + + _prefix).toCharArray(); + } char[] str_footer = ("^\\c255255255").toCharArray(); this.headerLength = str_header.length; this.footerLength = str_footer.length;