Try this.
Index: java/org/l2jmobius/gameserver/model/actor/Creature.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Creature.java (revision 14613)
+++ java/org/l2jmobius/gameserver/model/actor/Creature.java (working copy)
@@ -2575,7 +2575,24 @@
}
else
{
- _title = isPlayer() && (value.length() > 21) ? value.substring(0, 20) : value;
+ if (isPlayer())
+ {
+ // Remove all {i<number>} where the number is not in the range 0-34.
+ final String title = value.replaceAll("\\{i-(\\d+)|\\{i(3[5-9]|[4-9]\\d*)\\}", "");
+
+ if (title.length() > 21)
+ {
+ _title = title.substring(0, 20);
+ }
+ else
+ {
+ _title = title;
+ }
+ }
+ else
+ {
+ _title = value;
+ }
}
}