Hey, j'ai pas tester mais je trouve que ton tempban n'es pas très opti . Mais je ne vais pas juger ton travaille j'ai fait un skript je ne l'es pas test dit moi si sa marche.
command /atempban [<offline player>] [<number>] [<text>]:
permission: staff.ban
permission message: {@NoPermMsg}
trigger:
if arg 1 is not set:
send "{@MissingArgs} /tempban [player] [time] [s/min/d/mo/y] [reason]" to player
stop
else:
if arg 2 is not set:
send "{@MissingArgs} /tempban %arg 1% [time] [s/min/d/w/mo/y] [reason]" to player
stop
else:
if arg 3 is not set:
send "{@MissingArgs} /tempban %arg 1% %arg 2% [s/min/d/mo/y] [reason]" to player
stop
else:
if arg 3 is "s":
set {tempbanned::%arg-1%} to true
set {banner::%arg-1%} to "%sender%"
set {tbanned::%arg-1%} to true
set {banreason::%arg-1%} to "No reason"
set {bantime::%arg-1%} to "%arg-2% seconds" parsed as timespan
set {_time} to "%arg-2% second(s)"
kick arg-1 due to "{@ModPrefix} &cYou have been temporaly banned from this server%nl%&c Reason: &6%{banreason::%arg-1%}%%nl%&cModerator: &6%{banner::%arg-1%}%%nl%&c Time: %{_time}%"
stop
on join:
if {tembanned::%player%} is true
set {_tcheck} to difference between {tempbanned::%player%} and now
if {_tcheck} < {bantime::%player%}:
kick player due to "{@ModPrefix} &cYou are temporaly banned from this server%nl%&c Reason: &6%{banreason::%player%}%%nl%&cModerator: &6%{banner::%player%}%%nl%&c Time: %{bantime::%player%}%"
## Apprès au cas s'ou
set join message to ""
else:
set join message to " #Ton msg de join bg "