fix bug end game
This commit is contained in:
parent
10079ea8d0
commit
aea9b4a0d9
1 changed files with 8 additions and 4 deletions
12
party.sk
12
party.sk
|
@ -17,8 +17,9 @@ command party [<player>] [<text>]: # commande party
|
||||||
send "&cTu es déjà dans la partie."
|
send "&cTu es déjà dans la partie."
|
||||||
stop
|
stop
|
||||||
set {party.player.%uuid of player%} to true
|
set {party.player.%uuid of player%} to true
|
||||||
|
set {_player} to userOrNick(player)
|
||||||
loop {party.list::*}:
|
loop {party.list::*}:
|
||||||
send "%player%&a a rejoint la partie." to loop-value
|
send "%{_player}%&a a rejoint la partie." to loop-value
|
||||||
add player to {party.list::*}
|
add player to {party.list::*}
|
||||||
send "&aTu as rejoint la partie."
|
send "&aTu as rejoint la partie."
|
||||||
stop
|
stop
|
||||||
|
@ -32,8 +33,9 @@ command party [<player>] [<text>]: # commande party
|
||||||
stop
|
stop
|
||||||
else:
|
else:
|
||||||
delete {party.player.%uuid of player%}
|
delete {party.player.%uuid of player%}
|
||||||
|
set {_player} to userOrNick(player)
|
||||||
loop {party.list::*}:
|
loop {party.list::*}:
|
||||||
send "%player%&c a quitté la partie." to loop-value
|
send "%{_player}%&c a quitté la partie." to loop-value
|
||||||
remove player from {party.list::*}
|
remove player from {party.list::*}
|
||||||
send "&cTu as quitté la partie."
|
send "&cTu as quitté la partie."
|
||||||
stop
|
stop
|
||||||
|
@ -43,7 +45,8 @@ command party [<player>] [<text>]: # commande party
|
||||||
if arg-2 is "create":
|
if arg-2 is "create":
|
||||||
if player is op:
|
if player is op:
|
||||||
if {party} is set:
|
if {party} is set:
|
||||||
send "&4La party est déjà créer par %{party.creator}%&4."
|
set {_player} to userOrNick({party.creator})
|
||||||
|
send "&4La party est déjà créer par %{_player}%&4."
|
||||||
stop
|
stop
|
||||||
else:
|
else:
|
||||||
set {party.creator} to player
|
set {party.creator} to player
|
||||||
|
@ -73,7 +76,8 @@ command party [<player>] [<text>]: # commande party
|
||||||
if arg-1 is set:
|
if arg-1 is set:
|
||||||
if {party} is set:
|
if {party} is set:
|
||||||
send "&aTu as invité &l%arg-1%&r&a."
|
send "&aTu as invité &l%arg-1%&r&a."
|
||||||
send formatted "<tooltip:&3Clique sur le message pour rejondre la partie.><cmd:/party join>&aVeux tu rejoindre la partie aux côtés de &9%player%&a ?" to arg-1
|
set {_player} to userOrNick(player)
|
||||||
|
send formatted "<tooltip:&3Clique sur le message pour rejondre la partie.><cmd:/party join>&aVeux tu rejoindre la partie aux côtés de &9%{_player}%&a ?" to arg-1
|
||||||
else:
|
else:
|
||||||
send {@pasDePartie}
|
send {@pasDePartie}
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue