ban player

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

djmanbr

Member
Feb 18, 2017
31
2
0
28
I try it, and it don't say error:

code_language.skript:
        if player has permission "essentials.ban":
            ban arg-1 due to "%arg-2%"
            broadcast "{@p} &e%player% &2ha baneado a &e%arg-1%&2. Razón: &7%arg-2%"
        else:
            send "{@e}"

It doesn't work, why?
 
I try it, and it don't say error:

code_language.skript:
        if player has permission "essentials.ban":
            ban arg-1 due to "%arg-2%"
            broadcast "{@p} &e%player% &2ha baneado a &e%arg-1%&2. Razón: &7%arg-2%"
        else:
            send "{@e}"

It doesn't work, why?
What do you mean it doesn't work? Can you give us the error?
 
It doesn't have error, but I repaired it.
When you put ban in code it only ban the player but it doesn't disconnect it, so you need to put a kick after the ban, like this:

code_language.skript:
        if player has permission "essentials.ban":
            ban arg-1 due to "%arg-2%"
            kick arg-1 due to "%arg-2%"
            broadcast "{@p} &e%player% &2ha baneado a &e%arg-1%&2. Razón: &7%arg-2%"
        else:
            send "{@e}"
 
It doesn't have error, but I repaired it.
When you put ban in code it only ban the player but it doesn't disconnect it, so you need to put a kick after the ban, like this:

code_language.skript:
        if player has permission "essentials.ban":
            ban arg-1 due to "%arg-2%"
            kick arg-1 due to "%arg-2%"
            broadcast "{@p} &e%player% &2ha baneado a &e%arg-1%&2. Razón: &7%arg-2%"
        else:
            send "{@e}"
Okay cool, can you set this post's title to SOLVED.
 
It doesn't have error, but I repaired it.
When you put ban in code it only ban the player but it doesn't disconnect it, so you need to put a kick after the ban, like this:

code_language.skript:
        if player has permission "essentials.ban":
            ban arg-1 due to "%arg-2%"
            kick arg-1 due to "%arg-2%"
            broadcast "{@p} &e%player% &2ha baneado a &e%arg-1%&2. Razón: &7%arg-2%"
        else:
            send "{@e}"
psst
 
Status
Not open for further replies.