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.

Remove server messages sent to players

Discussion in 'Skript' started by KroterPvP, Jul 14, 2017.

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

    KroterPvP Active Member

    Joined:
    Apr 10, 2017
    Messages:
    178
    Likes Received:
    7
    Hi, as the title says, I wanna to remove server messages that are sent to players. I do not wanna check "on chat" messages, I wanna the skript to be like "MessageFilter" in spigot. How can I do that with skript?

    I'm using:
    Skript bensku's edit 27
    Skellett
    SkQuerry 3

    Thanks.
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    on chat: doesn't work with server messages I believe.
    What sort of server messages do you want to remove? Usually there is some sort of EN (message) config or option to send messages.
    Sometimes you can do things like this though
    Code (Skript):
    1.  
    2. on chat:
    3.    set message to "<red>%message%"
    4. on first join:
    5.    set join message to "Welcome %player% to our awesome server!"
    6. on join:
    7.    player has played before
    8.    set join message to "Welcome back, %player%!"
    9.  
    10. on quit:
    11.    set quit message to "%player% left this awesome server!"
    12.  
    13. on death:
    14.    set the death message to "%player% died!"
    15.  
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    I'm using multiversecore to load maps, and I wanna multiverse messages to be removed from the chat when a world is loaded. I wanna it to seem like the skript does it all, and multiverse is doing nothing.
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Hmmm, I'm not sure if there is a way to change multiverse messages.
    The average player shouldn't see any messages from it anyway? They're all usually OP only.
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    With Packets. [MundoSK]
    Code (Skript):
    1. on packet event play_server_chat:
    2.     set {_jsonmessage} to "%""chatcomponent"" pjson 0 of event-packet%"
     
    • Like Like x 1
    • Informative Informative x 1
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    oh hey,. Today I learned something too :emoji_slight_smile:
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...