Help on world chat.

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

Mast3rone123

Member
Jul 25, 2021
3
0
1
24
Hi , I want to create a skript , where each world has a different chat format.


on chat:
if event-world is "world":
cancel event
if player do not have permission "chat.owner":
broadcast "%player's display name% &3&l» &b%message%" in player's world
else:
broadcast "%player's display name% &3&l» &7%message%" in player's world

Such a thing, sorry but I'm new. can anyone help me?

Thanks.
 
try:
Code:
on chat:
    cancel event
    if player has permission "chat.owner":
            send "%player's display name% &3&l» &7%message%" to all players where [player input is in player's world]
        else:
            send "%player's display name% &3&l» &b%message%" to all players where [player input is in player's world]
 
  • Like
Reactions: Mast3rone123
try this:

Code:
on chat:
    if event-world is "world":
        cancel event
        if player has permission "chat.owner":
            send "%player's display name% &3&l» &b%message%" to all players in world "world"
        else:
            send "%player's display name% &3&l» &7%message%" to all players in world "world"

but Minecoll_YT's code is better. use whatever u want
 
  • Like
Reactions: Minecoll_YT
try:
Code:
on chat:
    cancel event
    if player has permission "chat.owner":
            send "%player's display name% &3&l» &7%message%" to all players where [player input is in player's world]
        else:
            send "%player's display name% &3&l» &b%message%" to all players where [player input is in player's world]

I want to make that on a single world , is a chat format that is different from the others.
For example :

In world "1" : Chat format 1

In world "2" , "3" , "4" , Chat format 2
 
Status
Not open for further replies.