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!

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

Messages showing in specific world (Skript)

Discussion in 'Requests' started by SaphoGaming, Mar 7, 2020.

  1. SaphoGaming

    SaphoGaming Member

    Joined:
    Mar 2, 2020
    Messages:
    6
    Likes Received:
    0
    So basically, I need a skript that if you are in a world it doesn't show the message you send in the world to people in other worlds, I have bedwars plugin and It shows messages from ingame. In kitpvp I want to see only messages that people send in kitpvp not in survival and etc. Please help
     
  2. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    359
    Likes Received:
    17
    Code (Text):
    1. loop all players in world "kitpvp":
    2.     send "blah blah" to loop-player
     
  3. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    555
    Likes Received:
    30
    he propably talking about chat
     
  4. GemsMC

    GemsMC Member

    Joined:
    Feb 8, 2020
    Messages:
    14
    Likes Received:
    1
    Code (Text):
    1. on chat:
    2.     loop all players:
    3.         loop-player is in world "kitpvp":
    4.             cancel event
    5.             send "%player's displayname%: %message%"
     
  5. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,155
    Likes Received:
    170
    can make that even shorter:
    Code (Skript):
    1. on chat:
    2.     cancel event
    3.     send "%player's displayname%: %message%" to all players in world of player
     
    #5 ShaneBee, Mar 26, 2020 at 3:03 AM
    Last edited: Mar 27, 2020 at 12:21 AM
  6. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    359
    Likes Received:
    17
    Don't you need to cancel the chat so it doesn't get sent twice? Or does it cancel automatically
     
  7. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,155
    Likes Received:
    170
    oh right, yes oops
     
Loading...