#(frigmun) Target for tablist update

20 messages · Page 1 of 1 (latest)

maiden peak
#

Hi, please tell me, is it possible to specify in "tablist update" the player for whom to perform this update or a list of players, without foreach?

jovial jasperBOT
#

(frigmun) Target for tablist update

jovial jasperBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

undone jay
#

are you referring to the event triggering, or something happening during the script?

maiden peak
#

And because of this, if I want to make a custom prefix via tablist, I have to run foreach on all players on the network "foreach <server.online_platers> as:__player:"
And then run another loop on all players to change each player's data.

maiden peak
alpine ruin
#

!lang the player and npc arguments

south oxideBOT
# alpine ruin !lang the player and npc arguments

The "player:<player>" and "npc:<npc>" arguments are special meta-arguments that are available for all commands, but are only useful for some.
They are written like:

  • give stick player:<server.flag[some_player]>
    or:
  • sit npc:<entry[save].created_npc>

Denizen tracks a "linked player" and a "linked NPC" in queues and the commands within.
Many commands automatically operate on the linked player/NPC default or exclusively
(for example, "give" defaults to giving items to the linked player but that can be changed with the "to" argument,
"sit" exclusively makes the linked NPC sit, and that cannot be changed except by the global NPC argument).

When the player argument is used, it sets the linked player for the specific command it's on.
This is only useful for commands that default to operating ...

Group

Script Command System

alpine ruin
#

is this what you're looking for?

maiden peak
maiden peak
# alpine ruin is this what you're looking for?

To make my code look like this, without running foreach inside foreach?

    # test
- foreach <server.online_players> as:players:
        - tablist update uuid:<[players].uuid> "display:<[prefix]> <[players].nameplate>" players:<server.online_players>```
undone jay
#

there isn't a "player_s_" argument for the tablist command since it's tied to a singular player, you'll have to use a "foreach" loop

maiden peak
burnt cloak
burnt cloak
#

there isn't much room for a different consensus here, if you're having any issues (especially performance related) you can look to seek more help

agile pineBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@maiden peak