#joins and online player count

1 messages · Page 1 of 1 (latest)

chilly pawn
#

full script ```on join:
if {kills::%player's uuid%} is not set:
set {kills::%player's uuid%} to 0
if {deaths::%player's uuid%} is not set:
set {deaths::%player's uuid%} to 0
if {beacons::%player%} is not set:
set {beacons::%player%} to 0
if {blocks::%player%} is not set:
set {blocks::%player%} to 0
if {joins::%player%} is not set:
set {joins::%player%} to 0
if {online::%player%} is not set:
set {online::%player%} to 0

while player is online:
set line 11 of player's scoreboard to " &7guapobox.minehut.gg "
set line 10 of player's scoreboard to ""
set line 9 of player's scoreboard to " &e🛈 &fJoins: &e%{joins::%player's uuid%}%"
set line 8 of player's scoreboard to " &a✔ &fOnline: &a%{online%player's uuid%}%&7/&a200"
set line 7 of player's scoreboard to " "
set line 6 of player's scoreboard to " &b❇ &fBeacons: &b%{beacons::%player's uuid%}%"
set line 5 of player's scoreboard to " &3⛏ &fMined: &b%{blocks::%player's uuid%}%"
set line 4 of player's scoreboard to " &c☠ &fDeaths: &c%{deaths::%player's uuid%}%"
set line 3 of player's scoreboard to " &4🗡 &fKills: &4%{kills::%player's uuid%}%"
set line 2 of player's scoreboard to " &6⌚ &fPlaytime: &6time spent???"
set line 1 of player's scoreboard to ""
set title of player's scoreboard to "&a&lGuapo&2&lBox"
wait 1 second

on death:
if attacker is a player:
if victim is a player:
add 1 to {kills::%attacker's uuid%}
add 1 to {deaths::%victim's uuid%}
on mine of beacon:
add 1 to {beacons::%player's uuid%}
on mine:
add 1 to {blocks::%player's uuid%}
on join:
if player hasn't played before:
add 1 to {joins::%player's uuid%}
if player has played before:
stop
on join:
send "%amount of all players in world ("box world")%"
add 1 to {online::%player's uuid%}
on quit:
send "%amount of all players in world ("box world")%"
remove 1 from {online::%player's uuid%}```

past pollen
#

are you trying to get a total joined amount?

#

and you know on first join exists right?

#

but the easy way would just be to do size of all offlineplayers

chilly pawn
#

oh

chilly pawn
lament heart
#

.

#

so

#
on first join:
  add 1 to {joins}
on join:
  send "%amount of all players in world ("box world")%" to player
  add 1 to {online}
on quit:
  send "%amount of all players in world ("box world")%" to player
  add 1 to {online}
#

that's how you do it

#

any questions --> dm me

ionic chasm
ionic chasm
# lament heart that's how you do it

please dont spoon feed, also, this is inaccurate

  1. Whats the point of {online} when both you and Thijmen have provided expressions?
  2. why are you adding to {online} when a player leaves?
lament heart
#

shit

#

i forgot to change it