Solved Staff join/leave message

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

BotiiX

New Member
Jul 14, 2020
9
0
1
21
Hello. I am making a staff skript, and I wanted a staff join/leave message like InvadedLands, but it didn't work. Does someone know what's the problem?


on join:
if player has permission "atomcore.staffchat":
loop all players:
loop-player has permission "atomcore.staffchat":
send "&b[Staff] &c%player% &7joined the server."

on quit:
if player has permission "atomcore.staffchat":
loop all players:
loop-player has permission "atomcore.staffchat":
send "&b[Staff] &c%player% &7left the server."
 
You need to add loop-player to your send effects.

Code:
on join:
    if player has permission "atomcore.staffchat":
        loop all players:
            loop-player has permission "atomcore.staffchat":
                send "&b[Staff] &c%player% &7joined the server." to loop-player

on quit:
    if player has permission "atomcore.staffchat":
        loop all players:
            loop-player has permission "atomcore.staffchat":
                send "&b[Staff] &c%player% &7left the server." to loop-player
 
You need to add loop-player to your send effects.

Code:
on join:
    if player has permission "atomcore.staffchat":
        loop all players:
            loop-player has permission "atomcore.staffchat":
                send "&b[Staff] &c%player% &7joined the server." to loop-player

on quit:
    if player has permission "atomcore.staffchat":
        loop all players:
            loop-player has permission "atomcore.staffchat":
                send "&b[Staff] &c%player% &7left the server." to loop-player
Thank You! :emoji_grinning:
 
Status
Not open for further replies.