Kick/Ban Message Cancel?

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

Nydigov

Member
Feb 9, 2017
5
0
0
31
This is my code but it gives a player left/ player joined message I want no message any ideas on how to do this?

Code:
kick the player due to "&c&lJoining Is Not Enabled, Sorry"
 
Set a variable then catch it in the quit event to clear the leave message

code_language.skript:
command /silentkick <player>:
    trigger:
        kick the player-argument due to "&c&lJoining Is Not Enabled, Sorry"
        set {silentKick::%player-argument%} to true

on quit:
    {silentKick::%player%} is true
    set leave message to ""
    delete {silentKick::%player%}
 
This is my code but it gives a player left/ player joined message I want no message any ideas on how to do this?

Code:
kick the player due to "&c&lJoining Is Not Enabled, Sorry"

There is actually a good way to do it, without commands.

Code:
 on connect:
    player is op:
         add 1 to {_nothing}
    else:
        kick player due to "&cJoining is not allowed!"
    
on disconnect / leave:
    set leave message to " "

Should work perfectly. Hope i helped :emoji_slight_smile:
 
Status
Not open for further replies.