It keeps saying that ban player arg 1 for duration arg 2 is incorrect
Code:
command /tempban <text> <timespan> <text>:
permission: tempban.mod.expadorsystem
permission messagea: &cYou don't have access to this command!
trigger:
if arg 2 is not a timespan:
send "Please specify a valid duration."
stop
if arg 3 is "":
send "Please provide a reason for the ban."
stop
ban player arg 1 for duration arg 2
set {_bannedPlayer} to arg 1
set {_duration} to arg 2
set {_reason} to arg 3
broadcast "&c[TempBan] &6%{_bannedPlayer}% &chas been temporarily banned for &6%{_duration%}%. Reason: &e%{_reason}%."