message to everyone

This commit is contained in:
Mylloon 2021-07-02 03:01:13 +02:00
parent 2692a2980a
commit a6794b0b3d
2 changed files with 6 additions and 3 deletions

View file

@ -35,3 +35,7 @@ function pluriel(int: number) :: text:
set {_pluriel} to ""
set {_pluriel} to "s" if {_int} > 1
return {_pluriel}
function annonceParty(message: text):
loop {party.list::*}:
send {_message} to loop-value

View file

@ -96,8 +96,7 @@ every 0.5 second in "world": # pose du bloc et téléporatation
if {_niceJump} is true:
set block at loop-value to gold block
set {_player} to userOrNick(loop-value)
loop {party.list::*}:
send "&a&l%{_player}%&r&e a réalisé un dé à coudre !" to loop-value-2
annonceParty("&a&l%{_player}%&r&e a réalisé un dé à coudre !")
else:
delete {thimble.dead.%uuid of loop-value%}
@ -119,7 +118,7 @@ on death:
add 1 to {_finPartie}
else:
set {_player} to userOrNick(loop-value)
send "&c%{_player}%&b a été éliminé !" to loop-value
annonceParty("&c%{_player}%&b a été éliminé !")
if {_finPartie} is 1 or 0:
loop {party.list::*}:
if {_gagnant} is set: