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.

Detect World

Discussion in 'Skript' started by GamingHard, Oct 29, 2019.

  1. GamingHard

    GamingHard Member

    Joined:
    Oct 5, 2019
    Messages:
    17
    Likes Received:
    0
    I want to create a separate world chat Skript. For that I need to detect which world the player is in.

    Code (Text):
    1. on chat:
    2.     #somehow detect which world the player is in:
    3.         broadcast "<%player%> %message%" to "the detected world"
    How can I detect which world the player is in?
    --- Double Post Merged, Oct 29, 2019, Original Post Date: Oct 29, 2019 ---
    But I dont want to do it like this:

    Code (Text):
    1. on chat:
    2.     if player is in world "WORLDNAME":
    3.         broadcast "<%player%> %message%" to "WORLDNAME"
     
  2. notblueblob67

    notblueblob67 Active Member

    Joined:
    Sep 13, 2019
    Messages:
    31
    Likes Received:
    0
    I don't understand why you wouldnt want it to be like that.
    1. It works
    2. How tf does 1 line make a difference if it does EXACTLY what you want it to do?
    Explain and I might be able to help
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    why not just do
    Code (Skript):
    1. broadcast "" to world of player
    ??
     
  4. notblueblob67

    notblueblob67 Active Member

    Joined:
    Sep 13, 2019
    Messages:
    31
    Likes Received:
    0
    I genuinely didnt think of that lol, you just simplified everything :emoji_sweat_smile:
     
Loading...