I've replaced player.getRights with player.getMod, player.getAdmin and so on, to disable the console for admins so everyone will be able to use :: commands (console doesn't support a few characters which the regular chat does).
Now, I've tried this:
Code:
if(player.getMod == 1) {
player.setLastChatMessage(new ChatMessage(effects, numChars, "<img=1> "+text));
player.getUpdateFlags().setChatTextUpdateRequired(true);
}
In ChatPacketHandler just to discover that this actually makes so it says 'Username: CROWN hello' instead of 'CROWN Username: hello' as I want it to.
Is there a way of placing a string BEFORE the players username in the chat? I'm thinking of looping a check inwhich you use player.sendMessage, sending the chat line to the nearest players, unforunately I'm not that familiar with Java so I do not know how to check if a player is eg. 10 blocks away from a coordinate.
No, I don't want loyalty titles.
Help?