Can someone fix this tempban skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Sulsayhl

Active Member
Mar 11, 2024
59
1
8
24
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}%."