Page 1 of 1
2 Questions regarding text display
Posted: 27 Apr 2019, 18:27
by Drexyz
Hello,
1) When an unranked player joins my server it says New Player: I would like that to just say Player:. Can I change that and where?
2)When a player types a message in the chat it displays as [displaynamehere]:message I would like to get rid of those [ ] backets. Can I change that and where?
I've been looking into it for a while and cannot find it so I am hoping any of you can help me out
Thank you!

Re: 2 Questions regarding text display
Posted: 27 Apr 2019, 21:19
by undef.de
1.) "New Player" is at line 147 and 152 in plugin.welcome_center.php
2.) Well... I'm not sure now, but I think you can't do that. They are added from the dedicated server (if I remember right).
Re: 2 Questions regarding text display
Posted: 27 Apr 2019, 22:23
by Drexyz
undef wrote: ↑27 Apr 2019, 21:19
1.) "New Player" is at line 147 and 152 in plugin.welcome_center.php
2.) Well... I'm not sure now, but I think you can't do that. They are added from the dedicated server (if I remember right).
Thank you! 1.)
2.) Still haven't found this one if it happens to be possible let me know would be cool

Re: 2 Questions regarding text display
Posted: 01 May 2019, 09:20
by jonthekiller
It's possible for the 2) but it requires to override the Chat. I have done it for ManiaControl:
https://github.com/jonthekiller/ManiaCo ... Plugin.php
Important step is to enable to Manual Routing and after use the controller to manage the chat (can slow the controller if flood):
https://doc.maniaplanet.com/dedicated-s ... pc-methods
ChatEnableManualRouting (boolean,boolean) boolean The chat messages are no longer dispatched to the players, they only go to the rpc callback and the controller has to manually forward them. The second (optional) parameter allows all messages from the server to be automatically forwarded. Only available to Admin.
After I use this function:
Code: Select all
$this->maniaControl->getClient()->chatSendServerMessage('$z[' . $player->getEscapedNickname() . '$z] ' . $args[2] . '$z');
So now need to convert this into UASECO
