Solved This is a bug or I'm doing something wrong?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Skoll

Active Member
Sep 2, 2020
65
6
8
28
Code:
on join:
    set {chat::spigotcolors::*} to "&1", "&2", "&3", "&4", "&5", "&6", "&7", "&8", "&9", "&a", "&b", "&c", "&d", "&e" and "&f"   
    set {chat::colors::*} to "<dark blue>", "<dark aqua>", "<dark red>", "<dark purple>", "<gold>", "<gray>", "<dark gray>", "<light blue>", "<dark green>", "<light green>", "<light aqua>", "<light red>", "<light purple>", "<yellow>" and "<brown>"
    set {chat::%event-player%::color} to {chat::colors::%random integer between 1 and 15%}
This code is for random color of player name on chat.
Code:
        else:
            cancel event
            loop all players in radius 20 around event-player:
                message "[%distance between loop-player and event-player%m]%{chat::%event-player%::color}% %event-player%:&f %{_Nmsg::%player%}%" to loop-player
                broadcast "%{chat::%event-player%::color}%asd"

message line show white player name, but broadcast line show "asd" colored. Is this a bug or I'm doing something wrong ?
And doesn't matter if I use skript color format or bukkit color format.
[doublepost=1602096915,1602095840][/doublepost]I put the word "colored" after message, and worked.
example:
message colored "text message" to loop-player
 
Status
Not open for further replies.