1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Skript' started by Skoll, Oct 7, 2020.

Thread Status:
Not open for further replies.
  1. Skoll

    Skoll Active Member

    Joined:
    Sep 2, 2020
    Messages:
    60
    Likes Received:
    5
    Code (Text):
    1. on join:
    2.     set {chat::spigotcolors::*} to "&1", "&2", "&3", "&4", "&5", "&6", "&7", "&8", "&9", "&a", "&b", "&c", "&d", "&e" and "&f"  
    3.     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>"
    4.     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 (Text):
    1.         else:
    2.             cancel event
    3.             loop all players in radius 20 around event-player:
    4.                 message "[%distance between loop-player and event-player%m]%{chat::%event-player%::color}% %event-player%:&f %{_Nmsg::%player%}%" to loop-player
    5.                 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.
    --- Double Post Merged, Oct 7, 2020, Original Post Date: Oct 7, 2020 ---
    I put the word "colored" after message, and worked.
    example:
    message colored "text message" to loop-player
     
Thread Status:
Not open for further replies.

Share This Page

Loading...