HyperScript
Docs

← All of the Docs HyperPackets

Fake players on the tab list HyperPackets

effectadd fake tab player <name>HyperPackets

Puts one on everybody's list. The name is what scripts call it by afterwards. Adding one that is there already changes it

add fake tab player arg.1 with ping 40
expression... named <text>HyperPackets

What the list shows, with colours: named "&c&lConsole". Without it, the name itself

expression... with skin of <name>HyperPackets

The head of that player. Somebody who is online is taken from the server; anybody else is asked of Mojang, which takes a moment, and the head changes when the answer is there

expression... with ping <n>HyperPackets

The bars: 0 is full, 1000 is one bar

add fake tab player arg.1 with ping 40
expression... with order <n>HyperPackets

Where on the list: the higher the number, the further up. Real players are at 0. Needs Minecraft 1.21.2 or newer

expression... for <who>HyperPackets

Only on that player's list

effectset tab name of fake player <name> to <text>HyperPackets

Changes what is shown

effectset tab ping of fake player <name> to <n>HyperPackets

Changes the bars

effectset tab order of fake player <name> to <n>HyperPackets

Moves it up or down the list

effectset tab skin of fake player <name> to <name>HyperPackets

Another head. to "" gives the plain one

effectremove fake tab player <name>HyperPackets

Takes it off everybody's list. With for <who>, off that player's only

effectremove all fake tab playersHyperPackets

All of them

remove all fake tab players
expressionfake tab playersHyperPackets

The names of those there are, as a list

remove all fake tab players
Guide and examples

A fake tab player is a line on the list players see when they hold Tab. Nobody is on the server for it: it has a name, a skin for the little head, a ping for the bars, and a place.

SyntaxWhat it does
add fake tab player <name>Puts one on everybody's list. The name is what scripts call it by afterwards. Adding one that is there already changes it
... named <text>What the list shows, with colours: named "&c&lConsole". Without it, the name itself
... with skin of <name>The head of that player. Somebody who is online is taken from the server; anybody else is asked of Mojang, which takes a moment, and the head changes when the answer is there
... with ping <n>The bars: 0 is full, 1000 is one bar
... with order <n>Where on the list: the higher the number, the further up. Real players are at 0. Needs Minecraft 1.21.2 or newer
... for <who>Only on that player's list
set tab name of fake player <name> to <text>Changes what is shown
set tab ping of fake player <name> to <n>Changes the bars
set tab order of fake player <name> to <n>Moves it up or down the list
set tab skin of fake player <name> to <name>Another head. to "" gives the plain one
remove fake tab player <name>Takes it off everybody's list. With for <who>, off that player's only
remove all fake tab playersAll of them
fake tab playersThe names of those there are, as a list

What follows the name of add fake tab player can come in any order.

command /fakes <text>:
    permission: "fakes.use"
    trigger:
        if arg.1 is "clear":
            remove all fake tab players
            send "&7Gone."
            stop
        add fake tab player arg.1 with ping 40
        send "&a%arg.1% is on the list. There are now %size of fake tab players%."
  • A fake tab player is only on the list. It is not in the world, cannot be messaged, and does not count as online.
  • Players who join later get the ones that are for everybody. One that was for a single player goes when that player leaves.
  • They are gone after a restart or a reload of the plugin: add them from on load: to keep them.
  • On servers older than 1.21.2 the list has no order of its own and sorts by name; with order does nothing there.
  • At most 200 at a time.

To change the name a real player has on the list, HyperScript itself has set tab name of <who> to <text>; this addon is for entries that are nobody.