A per world chat skript

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

    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.

SirMichael87

Member
Jul 23, 2020
1
0
0
Hey guys. I am really new to running skripts.. I need help.

I am starting a bedwars server. It's bungeed to my survival server. There is a global chat (Multichat) running.
What I want to do is allow global chat while in the bedwars lobby, but have a separate chat when the players join a bedwars game (which is in a separate world).

I am very new to skripts.. I have learned a few things, but I have been trying so many different things, and I can't get it to work on my own because I lack the knowledge of how it all functions.
 
Something like this should work, I'm not the best at skript myself

loop all players:
if loop-player is in world "WORLD-NAME":
send "TEXT-HERE" to loop-player
No clue if this'll work, haven't tested it. I just came up with it off the top of my head so I doubt it works lol but it's worth a shot
 
Code:
on chat:
    cancel event
    loop all players in world "%world%": #if this doesn't work try %player's world%, %world of player% or sth like that
        send "%player%> %message%" to loop-player
 
Or:
code_language.skript:
on chat:
    cancel event
    send "%player's display name%: %message%" to all players in player's world
 
Status
Not open for further replies.