Color Admin's names only?

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Is there a plugin (not sure if color chat plugin does this or not) that can color Admin's names (name & chat possibly or just the name?) so people can recognize who is admin and who is a regular player?
Maybe possible, needs testing though. You want me to write one quick?

Others are free to do It aswell.
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Just colour chat
Python:
    def On_Chat(self, Player, ChatMessage):
        if Player.Admin:
            chatmsg = str(ChatMessage)[1:-1]
            colour = "[color red]"
            ChatMessage.NewText = colour + chatmsg
Prefix and colour chat
Python:
    def On_Chat(self, Player, ChatMessage):
        if Player.Admin:
            chatmsg = str(ChatMessage)[1:-1]
            colour = "[color red]"
            Prefix = "[Admin] "
            Server.BroadcastFrom(Prefix + Player.Name, colour + chatmsg)
            ChatMessage.NewText = None
 
Last edited:
  • Like
Reactions: JumPayy

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Can't colour the players names from what I know of, only the chat message that follows the name.
 
  • Like
Reactions: JumPayy