i made this code for my server:
(ignore the messages)
command /start:
trigger:
loop all players every 30 minutes:
set {_num.%player%} to random integer between 1 and 10
set max health of all players to 10
remove speed from all players
remove jump boost from all players
remove invisibility from all players
remove slowness from all players
remove strength from all players
remove weakness from all players
remove resistance from all players
remove mining fatigue from all players
remove slow falling from all players
if {_num.%player%} is 1:
apply invisibility to player for 1 day
message "&2now you are &b&linvisibility" to the player
if {_num.%player%} is 2:
apply jump boost of tier 2 to player for 1 day
apply speed of tier 2 to player for 1 day
message "&2you are &b&obouncey" to the player
if {_num.%player%} is 3:
set max health of player to 6
message "&cyou have like no &2health &6nob" to the player
if {_num.%player%} is 4:
set max health of player to 12
message "&2youreeee health goes &1&lSTONKSSSSS" to the player
if {_num.%player%} is 5:
apply slowness of tier 1 to player for 1 day
message "&4you will never get to me &5slow ass" to the player
if {_num.%player%} is 6:
apply strength of tier 1 to player for 1 day
message "&1you have strength. because &4&lyou are bad at the game. " to the player
if {_num.%player%} is 7:
apply weakness of tier 2 to player for 1 day
message "&1you are &cfucking &d&lweak" to the player
if {_num.%player%} is 8:
apply resistance to player for 1 day
message "&4damege &r= &5no" to the player
if {_num.%player%} is 9:
apply mining fatigue to player for 1 day
message "&4you cant mine!&c yeah cry it out you &lugly fuck" to the player
if {_num.%player%} is 10:
apply slow falling to player for 1 day
message "&1&lhah&5!&4&e you fall slow" to the player
stop
i dont know why but it doesent work.
the eror says that theres no spesific player. but i made a loop all players. please help!
(ignore the messages)
command /start:
trigger:
loop all players every 30 minutes:
set {_num.%player%} to random integer between 1 and 10
set max health of all players to 10
remove speed from all players
remove jump boost from all players
remove invisibility from all players
remove slowness from all players
remove strength from all players
remove weakness from all players
remove resistance from all players
remove mining fatigue from all players
remove slow falling from all players
if {_num.%player%} is 1:
apply invisibility to player for 1 day
message "&2now you are &b&linvisibility" to the player
if {_num.%player%} is 2:
apply jump boost of tier 2 to player for 1 day
apply speed of tier 2 to player for 1 day
message "&2you are &b&obouncey" to the player
if {_num.%player%} is 3:
set max health of player to 6
message "&cyou have like no &2health &6nob" to the player
if {_num.%player%} is 4:
set max health of player to 12
message "&2youreeee health goes &1&lSTONKSSSSS" to the player
if {_num.%player%} is 5:
apply slowness of tier 1 to player for 1 day
message "&4you will never get to me &5slow ass" to the player
if {_num.%player%} is 6:
apply strength of tier 1 to player for 1 day
message "&1you have strength. because &4&lyou are bad at the game. " to the player
if {_num.%player%} is 7:
apply weakness of tier 2 to player for 1 day
message "&1you are &cfucking &d&lweak" to the player
if {_num.%player%} is 8:
apply resistance to player for 1 day
message "&4damege &r= &5no" to the player
if {_num.%player%} is 9:
apply mining fatigue to player for 1 day
message "&4you cant mine!&c yeah cry it out you &lugly fuck" to the player
if {_num.%player%} is 10:
apply slow falling to player for 1 day
message "&1&lhah&5!&4&e you fall slow" to the player
stop
i dont know why but it doesent work.
the eror says that theres no spesific player. but i made a loop all players. please help!
Last edited: