Ban - TempIpban System!

  • 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!

Status
Not open for further replies.

Congraz

Member
Oct 26, 2018
45
0
0
23
I have been trying to make a Ban - System. But it won't work. I want it to work this way: If the player get ban for 2 days, and then get unban, and if he get ban again, then it will be 4 days. Automatic. Look at this skript, dont know what the problem is. Please help:
code_language.skript:
command /hack [<player>]:
    permission: Mod.adgang
    permission message: &cDu har ikke adgang til denne kommando.
    trigger:
        make console execute command "/Manuaddp %player% Hack.1"
        wait 5 ticks
        if arg 1 is player:
            make player execute command "/tempban %player% 1d &cHack &7(&a1.gang&7)"
        else:
            if player has permission "hack.1":
                make console execute command "/manudelp %player% hack.1"
                wait 3 ticks
                make console execute command "/manuaddp %player% hack.2"
                wait 3 ticks
                make player execute command "/tempban %player% 1d &cHack &7(&a2.gang&7)"
 
I have been trying to make a Ban - System. But it won't work. I want it to work this way: If the player get ban for 2 days, and then get unban, and if he get ban again, then it will be 4 days. Automatic. Look at this skript, dont know what the problem is. Please help:
code_language.skript:
command /hack [<player>]:
    permission: Mod.adgang
    permission message: &cDu har ikke adgang til denne kommando.
    trigger:
        make console execute command "/Manuaddp %player% Hack.1"
        wait 5 ticks
        if arg 1 is player:
            make player execute command "/tempban %player% 1d &cHack &7(&a1.gang&7)"
        else:
            if player has permission "hack.1":
                make console execute command "/manudelp %player% hack.1"
                wait 3 ticks
                make console execute command "/manuaddp %player% hack.2"
                wait 3 ticks
                make player execute command "/tempban %player% 1d &cHack &7(&a2.gang&7)"
Using %player% is representing the player using the command. Use %arg-1% to reference the player argument.
 
Status
Not open for further replies.