If I die it wont work.
on death:
set {playersalive} to {playersalive} - 1
wait 1 tick
if {playersalive} is "0":
loop all players in world "pvp":
message "&c[Server-Pvp] &fHet gevecht is afgelopen" to loop-player
set {_amount} to amount of players in world "pvp"
if {_amount} is greater than 0:
execute player command "/consolepvpstart"
on death:
set {playersalive} to {playersalive} - 1
wait 1 tick
if {playersalive} is "0":
loop all players in world "pvp":
message "&c[Server-Pvp] &fHet gevecht is afgelopen" to loop-player
set {_amount} to amount of players in world "pvp"
if {_amount} is greater than 0:
execute player command "/consolepvpstart"