#Determining gamemode of a player from script
22 messages · Page 1 of 1 (latest)
hmmm
u can do function
which will add scoreboard "gm"
scoreboard objectives add gm dummy
scoreboard players add @a gm 0
scoreboard players set @a[m=s] gm 1
scoreboard players set @a[m=c] gm 2
scoreboard players set @a[m=a] gm 3
scoreboard players set @a[m=spectator] gm 4
then get getScore functikn3
function *
and use this:
world.events.tick.subscribe(d => {
const survival = []
for (const p of world.getPlayers()) {
if (gS(p, "gm") == 1)) {
survival.push(p.name)
}
}
})
@thorn vigil
i think this can work
but i am not sure
yes
yes