Silent Vanish Help

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

Addivt

New Member
Jun 30, 2018
6
0
0
24
Code:
on join:
    if player has permission "join.silent":
        set join message to ""
    else if player does not have permission "join.silent":
        set join message to "&b%player% &ajoined"
    loop all players:
        if loop-player has permission "join.alert":
            message "&7&o[%player%&7&o: &7&osilently joined&7&o]" to loop-player
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.
 
i think that you should put the "loop all players" in the if player has permission section...

Code:
on join:
    if player has permission "join.silent":
        set join message to ""
        loop all players:
            if loop-player has permission "join.alert":
                message "&7&o[%player%&7&o: &7&osilently joined&7&o]" to loop-player
        stop
    else if player does not have permission "join.silent":
        set join message to "&b%player% &ajoined"
 
Status
Not open for further replies.