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 our 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 Help with chat

Discussion in 'Skript' started by TubeVillager, Feb 11, 2019.

  1. T

    TubeVillager Member

    Joined:
    Jan 29, 2019
    Messages:
    20
    Likes Received:
    1
    Hey skripters,

    I wanna know how I add something to the thing when a player chats.
    So like I dont wanna cancel the chat event and customize the message
    but I wanna get the message that you would get always but add something
    in front of this. I wanna do this because I am using a plugin that adds things
    I need in the chat before the player name without using any placeholders.

    So is there a way I can do this?
    Thxxx
     
  2. L

    Joined:
    Jan 26, 2017
    Messages:
    356
    Likes Received:
    18
    Code (Text):
    1. set message to "Hello %message%"
     
  3. T

    TubeVillager Member

    Joined:
    Jan 29, 2019
    Messages:
    20
    Likes Received:
    1
    set changes the message. not the full the full line. i want it to be set before the player name and some other things. as i said: i dont want to format the message of anything because that is just not what i need.
     
  4. L

    Joined:
    Jan 26, 2017
    Messages:
    356
    Likes Received:
    18
    set message to "TEST %the chat format%%message%"
     
  5. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    677
    Likes Received:
    48
    Medals:
    Code (Text):
    1. set chat format to "hello %chat format%"
     
    #5 TPGamesNL, Feb 11, 2019
    Last edited: Feb 11, 2019
    • Like Like x 1
  6. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    682
    Likes Received:
    51
    Chat*
     
  7. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    677
    Likes Received:
    48
    Medals:
    Thanks lol
     
  8. T

    TubeVillager Member

    Joined:
    Jan 29, 2019
    Messages:
    20
    Likes Received:
    1
    Thanks I will try it now.
    --- Double Post Merged, Feb 11, 2019, Original Post Date: Feb 11, 2019 ---
    doesnt work. which dependencies do i need? skquery maybe?
     
  9. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,230
    Likes Received:
    169
    Medals:
    You just need a recent version of Skript (above dev20 works). It should also work if you have skQuery, yeah.
     
  10. T

    TubeVillager Member

    Joined:
    Jan 29, 2019
    Messages:
    20
    Likes Received:
    1
    okay i downloaded the latest version of skript on github but now it doesnt recognize the on chat event anymore ;-;
    --- Double Post Merged, Feb 11, 2019, Original Post Date: Feb 11, 2019 ---
    even worse it doesnt recognize any event anymore
    --- Double Post Merged, Feb 11, 2019 ---
    okay i tried some things and now it works thanks
    --- Double Post Merged, Feb 11, 2019 ---
    nevermind its incompatible with the plugin but its okay im just gonna try another system for this lol
     
Loading...