1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Staff join/leave message

Discussion in 'Skript' started by BotiiX, Jul 14, 2020.

Thread Status:
Not open for further replies.
  1. BotiiX

    BotiiX New Member

    Joined:
    Jul 14, 2020
    Messages:
    9
    Likes Received:
    0
    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."
     
  2. Best Answer:
    Post #2 by BaeFell, Jul 14, 2020
  3. BaeFell

    BaeFell I'm Poppy
    Admin

    Joined:
    Nov 27, 2016
    Messages:
    834
    Likes Received:
    226
    You need to add loop-player to your send effects.

    Code (Text):
    1.  
    2. on join:
    3.     if player has permission "atomcore.staffchat":
    4.         loop all players:
    5.             loop-player has permission "atomcore.staffchat":
    6.                 send "&b[Staff] &c%player% &7joined the server." to loop-player
    7.  
    8. on quit:
    9.     if player has permission "atomcore.staffchat":
    10.         loop all players:
    11.             loop-player has permission "atomcore.staffchat":
    12.                 send "&b[Staff] &c%player% &7left the server." to loop-player
    13.  
     
  4. BotiiX

    BotiiX New Member

    Joined:
    Jul 14, 2020
    Messages:
    9
    Likes Received:
    0
    Thank You! :emoji_grinning:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...