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.

Silent Vanish Help

Discussion in 'Skript' started by Addivt, Jul 6, 2019.

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

    Addivt New Member

    Joined:
    Jun 30, 2018
    Messages:
    6
    Likes Received:
    0
    Code (Text):
    1.  
    2. on join:
    3.     if player has permission "join.silent":
    4.         set join message to ""
    5.     else if player does not have permission "join.silent":
    6.         set join message to "&b%player% &ajoined"
    7.     loop all players:
    8.         if loop-player has permission "join.alert":
    9.             message "&7&o[%player%&7&o: &7&osilently joined&7&o]" to loop-player
    10.  
    Right now, when staff join, the join message is at " ". And other staff with the permission can view that they joined silently. But when players join, it shows the join message, and it notifies staff that they joined silently. How can I make it so it doesn't notify staff that defaults joined silently.
     
  2. BowYard

    BowYard Member

    Joined:
    Nov 2, 2017
    Messages:
    45
    Likes Received:
    0
    i think that you should put the "loop all players" in the if player has permission section...

    Code (Text):
    1.  
    2. on join:
    3.     if player has permission "join.silent":
    4.         set join message to ""
    5.         loop all players:
    6.             if loop-player has permission "join.alert":
    7.                 message "&7&o[%player%&7&o: &7&osilently joined&7&o]" to loop-player
    8.         stop
    9.     else if player does not have permission "join.silent":
    10.         set join message to "&b%player% &ajoined"
    11.    
    12.  
    13.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...