options:
PrefixCJ: &6[Casier Judiciaire]
command /cj [<text>] [<offline player>] [<text>]:
permission: perm.policier
permission message: &cVous n'avez pas la permission d'exécuter cette commande.
trigger:
if arg 1 is not set:
send "{@PrefixCJ} &cErreur: /cj <add,show,remove> <joueur> [<infraction>]" to player
stop
if arg 2 is not set:
send "{@PrefixCJ} &cErreur: /cj <add,show,remove> <joueur> [<infraction>]" to player
stop
if arg 1 is "add":
if arg 2 is set:
if arg 3 is set:
add "%arg 3%" to {casier.%arg 2%::*}
send "{@PrefixCJ} &fVous avez ajouté l'infraction &b%arg 3% &fau joueur %arg 2%" to player
stop
else:
send "{@PrefixCJ} &cErreur: /cj <add,show,remove> <joueur> [<infraction>]" to player
stop
if arg 1 is "show":
if arg 2 is set:
if arg 3 is not set:
loop {casier.%arg 2%::*}:
if {casier.%arg 2%::*} is equal to 0:
send "{@PrefixCJ} &cCe joueur n'a aucune infraction!" to player
stop
else if {casier.%arg 2%::*} is greater than 0:
add 1 to {_sanction}
send "&7Infraction N°%{_sanction}%: &f%loop-value%" to player
stop
if arg 1 is "remove":
if arg 2 is set:
if arg 3 is set:
set {_number} to "%arg 3%" parsed as a integer
if {casier.%arg 2%::*} is equal to 0:
send "{@PrefixCJ} &cCe joueur n'a aucune infraction! Il est donc impossible de lui en retirer." to player
stop
if {casier.%arg 2%::%arg 3%} is set:
remove "%arg 3%" from {casier.%arg 2%::*}
send "{@PrefixCJ} &fVous avez retiré l'infraction &b%arg 3% &fau joueur %arg 2%" to player
stop
else:
send "{@PrefixCJ} &cCe joueur n'a pas d'infraction N°%arg 3%!" to player
stop
else:
send "{@PrefixCJ} &cErreur: /cj <add,show,remove> <joueur> [<nombre de l'infraction>]" to player
stop
Pas encore testé mais normalement ça devrait marcher! ?