Detect World

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

GamingHard

Member
Oct 5, 2019
17
0
0
23
I want to create a separate world chat Skript. For that I need to detect which world the player is in.

Code:
on chat:
    #somehow detect which world the player is in:
        broadcast "<%player%> %message%" to "the detected world"

How can I detect which world the player is in?
[doublepost=1572360654,1572360388][/doublepost]But I dont want to do it like this:

Code:
on chat:
    if player is in world "WORLDNAME":
        broadcast "<%player%> %message%" to "WORLDNAME"
 
I want to create a separate world chat Skript. For that I need to detect which world the player is in.

Code:
on chat:
    #somehow detect which world the player is in:
        broadcast "<%player%> %message%" to "the detected world"

How can I detect which world the player is in?
[doublepost=1572360654,1572360388][/doublepost]But I dont want to do it like this:

Code:
on chat:
    if player is in world "WORLDNAME":
        broadcast "<%player%> %message%" to "WORLDNAME"
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
 
Status
Not open for further replies.