Hide 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!

Saidas25

New Member
Apr 11, 2025
9
0
1
Category: No idea

Suggested name: Hide From Tab

Spigot/Skript Version: 1.21.4, 2.10.2

What I want:

Don't even know if this is possible, but I'd like a script that hides a player from the player list (TAB)
Not like Vanish, which hides the player completely, I want just the player list. (will use this for Herobrine disguise, server lore woooo)

Ideas for commands:
/hidefromtab <player>
/showintab <player>

Ideas for permissions:
hideintab.use

When I'd like it by:
Anywhen.
 
I just want a player to not appear in player list. When you press the TAB button, you can see every player that's online, I need a script that would hide a player from there.
 
here you go
Code:
# Command to hide a player from the tab list
command /hidefromtab <player>:
    permission: tab.hide
    trigger:
        hide arg-1 from all players
        add uuid of arg-1 to {vanished::*}
        send "&aYou have hidden %arg-1% from the tab list."

# Command to show a player back in the tab list
command /showintab <player>:
    permission: tab.show
    trigger:
        show arg-1 to all players
        remove uuid of arg-1 from {vanished::*}
        send "&aYou have shown %arg-1% in the tab list."

# Reapply hiding to players in the vanished list when someone joins
on join:
    loop {vanished::*}:
        set {_p} to player from uuid loop-value
        if {_p} is set:
            hide {_p} from event-player
 
OK, weird stuff happened.
This makes you completely vanish, not just from the playerlist, but also in-game.
Now the weird thing, when you do /showintab, it opens your inventory twice, like in some /invsee plugin, and items start randomly changing places, getting shuffled. It doesn't even make you reappear.
 
here you go
Code:
# Command to hide a player from the tab list
command /hidefromtab <player>:
    permission: tab.hide
    trigger:
        hide arg-1 from all players
        add uuid of arg-1 to {vanished::*}
        send "&aYou have hidden %arg-1% from the tab list."

# Command to show a player back in the tab list
command /showintab <player>:
    permission: tab.show
    trigger:
        show arg-1 to all players
        remove uuid of arg-1 from {vanished::*}
        send "&aYou have shown %arg-1% in the tab list."

# Reapply hiding to players in the vanished list when someone joins
on join:
    loop {vanished::*}:
        set {_p} to player from uuid loop-value
        if {_p} is set:
            hide {_p} from event-player
any idea what the problem could be?
 
try this? it needs skbee though
Code:
command /hidefromtab <player>:
    permission: tab.hide
    trigger:
        loop all players:
            remove tablist entry of arg-1 from loop-player
        add uuid of arg-1 to {vanished::*}
        send "&aYou have hidden %arg-1% from the tab list."

command /showintab <player>:
    permission: tab.show
    trigger:
        loop all players:
            add tablist entry of arg-1 to loop-player
        remove uuid of arg-1 from {vanished::*}
        send "&aYou have shown %arg-1% in the tab list."

on join:
    loop {vanished::*}:
        loop all players:
            remove tablist entry of loop-value from loop-player
 
try this? it needs skbee though
Code:
command /hidefromtab <player>:
    permission: tab.hide
    trigger:
        loop all players:
            remove tablist entry of arg-1 from loop-player
        add uuid of arg-1 to {vanished::*}
        send "&aYou have hidden %arg-1% from the tab list."

command /showintab <player>:
    permission: tab.show
    trigger:
        loop all players:
            add tablist entry of arg-1 to loop-player
        remove uuid of arg-1 from {vanished::*}
        send "&aYou have shown %arg-1% in the tab list."

on join:
    loop {vanished::*}:
        loop all players:
            remove tablist entry of loop-value from loop-player
1744492764547.png
 
ya idk, I use to know how to do this but then I stopped doing skript for a while, and lost all my old projects so, ya. maby you can use a plug in?
 
I did some docs reading and found this

Code:
command /add:
    trigger:
        set {-u} to random uuid
        add player named "dimdom" to tablist with skin named "Ekpoa" with latency 999 for player with uuid {-u}

command /remove:
    trigger:
        remove tablist player with uuid {-u} for player

it needs PoaSK +4.11.6 but I think it works
 
Okay try this. I haven't tested it though.

Code:
command /hide:
    trigger:
        loop all players:
            if loop-player does not have permission "see.vanishedplayers":
                hide player from loop-player
        send "&aYou have hidden yourself from all players &7&o(Players with a certain permission can still see you.)" to player

command /show:
    trigger:
        loop all players:
            show player to loop-playerf
        send "&aYou have now shown yourself to all players!"