#Finding the names of all players with specific tags
1 messages · Page 1 of 1 (latest)
world.getAllPlayers()
.filter(player => player.hasTag("Tag"))
.map(plr => plr.name)```
thank you
any way i can use a prefixed tag?
or even just get the scores of all players in the game
wym?
like this? js export function getTagByPrefix(prefix) { return world.getAllPlayers() .getTags() .find(e => e.startsWith(prefix)) .substring(prefix.length) }
prefix is like
test:"thistest"
test: is the prefix
for all players in the world
so like
every player in my world when they join
get assigned an id based on when they joined (1-11)
i wanna get names by their ids
so like
Player 1 [ID 1]
Player 2 [ID 2]
Player 3[ID 3]
yk like the old click gui's
like before forms
im making one of those cause im bored
just use forms
no 🥸
.
.
i already know how to do it with forms
there easy asf
im just trying to challenge myself
cause im bored
so im revamping a bunch of old systems making them more efficient
text gui will never be more efficient than anything
without changing the entire base of it
i know
im trying to make it more efficent
idc if its less efficient the forms
why r u trying to get every players id tho?
so i can display it as a list
try this
easy tpa and money transfer system