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

HeliumBoi

Active Member
Sep 15, 2023
63
6
8

Have you guys tried to make or find per world chat for your server?:emoji_thinking:


I tired many plugins and skripts from Forums
and Spigot/bukkit plugins, they never seem
to work.:emoji_pensive:

My server is singular meaning I have 1 server
with diffirent worlds.

I actually need that kind of plugins that allows
servers to have different chats for different worlds:emoji_v:

Thoughts on this?

 
I gochu, ive alr made this. Just need to fix some tings.
Do you want players to be able to message the the worlds nether and end?
 
I gochu, ive alr made this. Just need to fix some tings.
Do you want players to be able to message the the worlds nether and end?
Hey there. No I want my players to be able to chat in the word they are in. Thank you. <3
 
So...

eg player-1 and player-2 are in world "main-lobby" and player-1 sends hi
player-3 and 4 are in world survival, so they can not see player-1's message but player-2 can.

Is this what you wanted?
 
Here's your code:
Code:
on chat:
    cancel event
    loop all players:
        #copy and paste this for every world
        if loop-player is in world "#WORLD":
            send "%player%: %message%" to loop-players
 
This is much better.

code_language.skript:
on chat:
  cancel event
  loop all players:
    world of loop-player is world of player
    send chat format to loop-player

Alternative with lambda statements:

code_language.skript:
on chat:
  cancel event
  send chat format to all players where [world of input = world of player]

Second one takes longer to parse. Just a heads up.
 
  • Like
Reactions: HeliumBoi