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 our 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 Hide spectators from TAB

Discussion in 'Skript' started by Wolwer, Jul 13, 2019.

Tags:
Thread Status:
Not open for further replies.
  1. Wolwer

    Wolwer Well-Known Member

    Joined:
    Feb 8, 2018
    Messages:
    53
    Likes Received:
    4
    Hello, guys!

    I'm developing an skript that hides spectators from tab. But I don't know how to do it. I have searched for plugin that will histe spectators from TAB on spigot and Bukkit, but I haven't found it.

    Please, help me.

    My addons and skript versions:
    - Skript: 2.2-Fixes-V8b
    - skQuery: 3.21.4
    - skRayFall: 1.9.15
    - Skellet: 1.9.6b
    - skUtilities: 0.5.6

    P.s. sorry for bad English

     
  2. Best Answer:
    Post #7 by KingAdmin_YT, Jul 25, 2019
  3. AbdullaH

    AbdullaH Member

    Joined:
    Jun 8, 2018
    Messages:
    2
    Likes Received:
    0
    1. loop all players:
    2. if loop-player's gamemode is spectator:
    3. hide loop-player from all players
     
  4. Joni

    Joni Active Member

    Joined:
    Jan 5, 2019
    Messages:
    25
    Likes Received:
    0
    yea but then it wont reveal them. I would do this to reveal them
    Code (Text):
    1. every second:
    2.     loop all players:
    3.         if loop-player's gamemode is spectator:
    4.             hide loop-player from all players
    5.         else:
    6.             reveal player from all players
     
  5. Wolwer

    Wolwer Well-Known Member

    Joined:
    Feb 8, 2018
    Messages:
    53
    Likes Received:
    4
    Thank you! I'll test it now :emoji_wink:
     
  6. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    271
    Likes Received:
    17
  7. Wolwer

    Wolwer Well-Known Member

    Joined:
    Feb 8, 2018
    Messages:
    53
    Likes Received:
    4
    • Friendly Friendly x 1
  8. KingAdmin_YT

    KingAdmin_YT Member

    Joined:
    May 16, 2018
    Messages:
    23
    Likes Received:
    0
    why "every second"?
    This could make lag or force this server.
    Code (Text):
    1. on gamemode change:
    2.     if player's gamemode is spectator:
    3.         hide player from players
    4.     if player's gamemode is not spectator:
    5.         reveal player from players
    Don't you think that's better?
    Source: https://docs.skunity.com/syntax/search/gamemode
    --- Double Post Merged, Jul 25, 2019, Original Post Date: Jul 25, 2019 ---
    Edit: If you don't get results, we can handle it with sk-mirror.
     
    #7 KingAdmin_YT, Jul 25, 2019
    Last edited: Jul 25, 2019
    • Agree Agree x 1
  9. Wolwer

    Wolwer Well-Known Member

    Joined:
    Feb 8, 2018
    Messages:
    53
    Likes Received:
    4
    Nice skript! Thanks :emoji_slight_smile:
     
    • Like Like x 1
Thread Status:
Not open for further replies.
Loading...