SRB2 Message Board  

Go Back   SRB2 Message Board > Archived > Outdated Releases (2.1.X) > Lua (2.1.X)

Thread Tools
Kick Last Joiner Details »»
Kick Last Joiner
Version: , by LJ Sonik LJ Sonik is offline
Developer Last Online: Jun 2020

Category: Version: SRB2 Rating: (2 votes - 3.00 average)
Released: 04-02-2016 Last Update: Never Favourites: 2
Scripts Re-Useable Content

A normal day on Srb2:
<Sonic the Hedgehog> lol 2 much fun
<Tails the Fox> this server is awsome :D
Player 5 has joined the game (node 4)
Player Address is 123.456.789.42:5029
Player 5 renamed to Edgehox
<Edgehox> hi
<Knuckles the Edchina> AAAAAAAHHHHHHHHH
<Sonic the Hedgehog> OMG RESYNCH
<Tails the Fox> NUUUUUUUUUU
Sonic the Hedgehog left the game (Synch failure)
Tails the Fox left the game (Synch failure)
Knuckles the Edchina left the game (Synch failure)
>kick 4
Edgehox has been kicked, but it's too late, the server is already empty XD
If you are used to this, kj.lua (stands for "kick joiner") is for you!

This tiny Lua script features a "kj" command ("kickjoiner" works too) that will kick the last player who joined the server.
This can be particularly useful when the game starts desynching after someone joined and you don't have enough time to kick them manually.
The default kick reason is "Please rejoin", but you can specify a custom message if wanted.
I recommend binding this command to a key so it is even faster to use and you don't need to specify the reason each time.

kj [reason]
kickjoiner [reason]

"reason" is optional and can contain space even when not quoted. If omitted, it'll default to "Please rejoin".
Note that both "kj" and "kickjoiner" have the exact same behavior.
Also keep in mind there is a length limit for kick messages in Srb2.

Joiner has been kicked (Please rejoin)
>kj Sorry resynch
Joiner has been kicked (Sorry resynch)
>kickjoiner sorry bro pls rejoin
Joiner has been kicked (sorry bro pls rejoin)

Download Now

File Type: lua kj.lua (495 Bytes, 408 views)

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Old 04-12-2016   #2
Watch Symphogear
wolfs's Avatar

This is kind of a nitpick but I really don't think duplicate scripts with different names are necessary. I'd just go with one and let players shorten it to whatever they want by themselves.
[23:56:36] <SM-MaxX> prisma illya is a gift to this impure earth and a shining beacon for all anime

Last edited by wolfs; 04-12-2016 at 11:03 PM.
wolfs is offline  
Old 04-16-2016   #3
'That brit'
Sryder's Avatar

Sorry for the wait, this does work fine, but I highly recommend keeping only one of the script names available to download. It could be quite annoying for the MS and people having to have both just in case the host is using one they wouldn't have otherwise.

Last edited by Sryder; 04-16-2016 at 08:40 PM.
Sryder is offline  
Old 04-18-2016   #4
The other one
OtherChen's Avatar

Try making one command a wrapper for the other. So "kj" just calls the same function as "kickjoiner" or even writes "kickjoiner" in the console for you.
OtherChen is offline  
Old 04-19-2016   #5
Watch Symphogear
wolfs's Avatar
Default When the sun sets; we will not forget the red sun over paradise

Originally Posted by OtherChen View Post
Try making one command a wrapper for the other. So "kj" just calls the same function as "kickjoiner" or even writes "kickjoiner" in the console for you.
They do use the same function. Nonetheless, there are still two identical scripts with different names.
[23:56:36] <SM-MaxX> prisma illya is a gift to this impure earth and a shining beacon for all anime
wolfs is offline  
Old 04-19-2016   #6
Meow Motherfuckers.
ManimiFire's Avatar

The story is XD
Check out my youtube channel:
ManimiFire is offline  
Old 04-19-2016   #7
LJ Sonik

Aw, almost a week it's been released and I realize just now.
Anyway, I removed KickLastJoiner.lua, so everyone has the same file name and can add it quickly.
LJ Sonik is offline  

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 03:44 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.