Solved Hide spectators from TAB

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

Wolwer

Active Member
Feb 8, 2018
53
5
8
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
 
  1. loop all players:
  2. if loop-player's gamemode is spectator:
  3. hide loop-player from all players
 
yea but then it wont reveal them. I would do this to reveal them
Code:
every second:
    loop all players:
        if loop-player's gamemode is spectator:
            hide loop-player from all players
        else:
            reveal player from all players
 
yea but then it wont reveal them. I would do this to reveal them
Code:
every second:
    loop all players:
        if loop-player's gamemode is spectator:
            hide loop-player from all players
        else:
            reveal player from all players
Thank you! I'll test it now :emoji_wink:
 
yea but then it wont reveal them. I would do this to reveal them
Code:
every second:
    loop all players:
        if loop-player's gamemode is spectator:
            hide loop-player from all players
        else:
            reveal player from all players
why "every second"?
This could make lag or force this server.
Code:
on gamemode change:
    if player's gamemode is spectator:
        hide player from players
    if player's gamemode is not spectator:
        reveal player from players
Don't you think that's better?
Source: https://docs.skunity.com/syntax/search/gamemode
[doublepost=1564011467,1564011309][/doublepost]Edit: If you don't get results, we can handle it with sk-mirror.
 
Last edited:
why "every second"?
This could make lag or force this server.
Code:
on gamemode change:
    if player's gamemode is spectator:
        hide player from players
    if player's gamemode is not spectator:
        reveal player from players
Don't you think that's better?
Source: https://docs.skunity.com/syntax/search/gamemode
[doublepost=1564011467,1564011309][/doublepost]Edit: If you don't get results, we can handle it with sk-mirror.
Nice skript! Thanks :emoji_slight_smile:
 
  • Like
Reactions: KingAdmin_YT
Status
Not open for further replies.