Exchange ban message

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

    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.

FabricioSouza

Well-Known Member
Mar 15, 2018
267
3
0
I've made a punishment system and I want to know why when I hit a player, he does not leave the server and there is another message that I did not put.
 
Show your code .... cant help you if you dont put anything here
 
Show your code .... cant help you if you dont put anything here


It is like this: when I banned to test I was there in the code: ban arg 1 due to "test", but another message appears thinking that I typed the / ban command and I type another command that I made by SKRIPT.
 
hmm... that is odd, which plugin do you have on the server that is controlling bans?
 
Not really sure why that is happening then.
I just quickly wrote this, and its working perfectly fine
code_language.skript:
command /ban <offline player> <text>:
    trigger:
        send "[&3BAN-SYSTEM&r] - &6%arg-1% was banned for %arg-2%" to player
        ban arg-1 due to arg-2

command /unban <offline player>:
    trigger:
        unban arg-1
        send "[&3BAN-SYSTEM&r] - &6%arg-1% was unbanned" to player
 
Not really sure why that is happening then.
I just quickly wrote this, and its working perfectly fine
code_language.skript:
command /ban <offline player> <text>:
    trigger:
        send "[&3BAN-SYSTEM&r] - &6%arg-1% was banned for %arg-2%" to player
        ban arg-1 due to arg-2

command /unban <offline player>:
    trigger:
        unban arg-1
        send "[&3BAN-SYSTEM&r] - &6%arg-1% was unbanned" to player

Mine is like this:

kick arg 1 due to "&c&lHUG NETWORK%newline%%newline%&c Você está banido permanentemente do servidor.%newline%&cMotivo: %arg-2% - Autor: %{ban.autor.%arg 1%}% %newline%&cProva: &c%{ban.prova.%arg 1%}% - Duração: %{ban.duração.%arg 1%}%"
[doublepost=1524534482,1524534416][/doublepost]
Mine is like this:

kick arg 1 due to "&c&lHUG NETWORK%newline%%newline%&c Você está banido permanentemente do servidor.%newline%&cMotivo: %arg-2% - Autor: %{ban.autor.%arg 1%}% %newline%&cProva: &c%{ban.prova.%arg 1%}% - Duração: %{ban.duração.%arg 1%}%"

But when I add ban arg 1 due to "" it appears my message and then another message appears
 
Thats very odd, because mine isn't doing that, then again I dont have a player on my test server to test, but I think its probably the built in bukkit ban messages
 
Status
Not open for further replies.