command /tempban [<offlineplayer>] [<text>] [<timespan>]:
aliases: modtempban
usage: /tempban <joueur> <raison> <temps> (10:00 = 10 minutes...)
permission: tempban.use
permission message: &cErreur, tu n'as pas la permission !
trigger:
if arg 1 is not set:
send "&3 /tempban <joueur> <raison> <temps> (10:00 = 10 minutes...) " to player
if arg 2 is not set:
send "&3 /tempban <joueur> <raison> <temps> (10:00 = 10 minutes...) " to player
if arg 3 is not set:
send "&3 /tempban <joueur> <raison> <temps> (10:00 = 10 minutes...) " to player
if arg 1 is set:
if arg 2 is set:
if arg 3 is set:
if arg 3 is timespan:
strike lightning effect to arg 1's location
ban arg 1 due to "&bVous avez été banni pour &3: &c%arg 2% &bpendant &c%arg 3% &b!"
set {tempban.%uuid of arg 1%} to true
broadcast "&c%arg 1% &7a été &cbanni &7pour &c%arg 2%"
set {raison.tempban.%uuid of arg 1%} to arg 2
set {temps.tempban.%uuid of arg 1%} to arg 3
kick arg 1 due to "&bVous avez été banni pour &3: &c%arg 2% &bpendant &c%arg 3% &b!"
send "&bTu as bien banni &c%arg 1% &bpour &c%arg 2% &bpendant &c%arg 3% &b!" to player
wait arg 3
make player execute command "/unban %arg 1%"
essaye cela :) Baisse pas les bras ;)
ou directement :
command /tempban [<offlineplayer>] [<text>] [<timespan>]:
aliases: modtempban
usage: /tempban <joueur> <raison> <temps> (10:00 = 10 minutes...)
permission: tempban.use
permission message: &cErreur, tu n'as pas la permission !
trigger:
if arg 1 is not set:
send "&3 /tempban <joueur> <raison> <temps> (10:00 = 10 minutes...) " to player
if arg 2 is not set:
send "&3 /tempban <joueur> <raison> <temps> (10:00 = 10 minutes...) " to player
if arg 3 is not set:
send "&3 /tempban <joueur> <raison> <temps> (10:00 = 10 minutes...) " to player
if arg 1 is set:
if arg 2 is set:
if arg 3 is set:
if arg 3 is timespan:
strike lightning effect to arg 1's location
ban arg 1 due to "&bVous avez été banni pour &3: &c%arg 2% &bpendant &c%arg 3% &b!"
set {tempban.%uuid of arg 1%} to true
broadcast "&c%arg 1% &7a été &cbanni &7pour &c%arg 2%"
set {raison.tempban.%uuid of arg 1%} to arg 2
set {temps.tempban.%uuid of arg 1%} to arg 3
kick arg 1 due to "&bVous avez été banni pour &3: &c%arg 2% &bpendant &c%arg 3% &b!"
send "&bTu as bien banni &c%arg 1% &bpour &c%arg 2% &bpendant &c%arg 3% &b!" to player
wait arg 3
delete {tempban.%uuid of arg 1%}
delete {raison.tempban.%uuid of arg 1%}
delete {temps.tempban.%uuid of arg 1%}
stop
N'oublie pas de vérifier les tabs dans les trois dernières lignes ~~ ;)