Player getting kicked reason?

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

xdprojosh1

Member
May 31, 2017
23
0
0
Thanks for clicking on my post.

When someone spams a lot, they get kicked for "disconnect.spam", I made a script where if the player gets kicked, it will say in Console "Kicked : %player%" How do I do add %reason%. <- It won't understand the expression.

Also, when the player gets kicked it will also say "quit" in console. How do I only display the kick message, if the player gets kicked.

Please don't rage I only started learning Skript yesterday! :emoji_slight_smile:

code_language.skript:
on quit:
    send "Quit : %player%" to console
  
on kick:
    send "Kick : %player%" to console
[doublepost=1496348653,1496343310][/doublepost]I still need help. Idk how to fix it :emoji_grimacing::emoji_alien::emoji_alien:
 
Thanks for clicking on my post.

When someone spams a lot, they get kicked for "disconnect.spam", I made a script where if the player gets kicked, it will say in Console "Kicked : %player%" How do I do add %reason%. <- It won't understand the expression.

Also, when the player gets kicked it will also say "quit" in console. How do I only display the kick message, if the player gets kicked.

Please don't rage I only started learning Skript yesterday! :emoji_slight_smile:

code_language.skript:
on quit:
    send "Quit : %player%" to console
 
on kick:
    send "Kick : %player%" to console
[doublepost=1496348653,1496343310][/doublepost]I still need help. Idk how to fix it :emoji_grimacing::emoji_alien::emoji_alien:
Please only bump once every 24 hours...

For your issue you can use Skellett to do
code_language.skript:
set {_r} to method "getReason"
 
I tried with variables, i dont know any other methods.
[doublepost=1496417308,1496360982][/doublepost]@Pikachu what do i do
 
Status
Not open for further replies.