Author Topic: Ban kick  (Read 5120 times)

0 Members and 1 Guest are viewing this topic.

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Ban kick
« on: September 09, 2011, 03:35:09 PM »
Originally, I ran a server on a game called Command and Conquer Renegade, this game has a command which when a player is kicked with !kban, it bans them for 24 hours.

Would good if it worked like this..

*Player 1 joins the game*
*player 1 breaks a rule*
!kick player spamming
*Player 1 kicked from the game*
*Player 1 joins the game*
*player 1 breaks a rule*
!kban player RDM
*Player 1 kickbanned from the game*

Be good if it had a message like this: [You have been kicked for 24 hours; Due to (REASON) by (Your name).]

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Ban kick
« Reply #1 on: September 09, 2011, 04:11:58 PM »
Whenever you ban someone it kicks them as well. Also you can ban someone for an allotted amount of time with a reason.

I would recommend you just do !ban <player> 1440 "Reason player is being banned"

This does exactly what you are asking for. There really is no reason to create a new command to shorten the syntax by a few characters.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Ban kick
« Reply #2 on: September 09, 2011, 05:08:57 PM »
He's talking about having it display the amount of time you're banned in the kick reason.  It would also be nice to have it show it upon joining as well.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ban kick
« Reply #3 on: September 09, 2011, 05:34:52 PM »
ULX uses Source's ban command.  Source's ban command, thank goodness, doesn't allow a player to connect just to have them get kicked again by a lua script.
I've seen too many minges try to join tens and hundreds of time, often changing the nick name to show their displeasure.
That alone is annoying to players of the server who see the message, but uses very little resources.
To allow a banned player to connect..snapshot synchronize, download forced downloads, just to have them kicked with a noticeable reason (banned - xxx), would take too much server resources.

As for adding the actual time to the reason, I guess I could see it being handy for the first time they are kicked when banned.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: Ban kick
« Reply #4 on: September 10, 2011, 03:04:49 AM »
Based on your replies, there have been times where I have found bugs in the ulx commands but I didn't think much of them.


*player joins (join message)*
*player spawns (actually entered the server)*
*player rdms*
*player @ STEAMID disconnected*
*player joins (join message)*
*ulx banid STEAMID 0 RDM*
*player spawns (actually entered the server)*

If they rejoin before you ban there ID, they are able to rejoin, once they leave they are banned. (Normally we just kick them)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ban kick
« Reply #5 on: September 10, 2011, 09:07:48 AM »
Based on your replies, there have been times where I have found bugs in the ulx commands but I didn't think much of them.


*player joins (join message)*
*player spawns (actually entered the server)*
*player rdms*
*player @ STEAMID disconnected*
*player joins (join message)*
*ulx banid STEAMID 0 RDM*
*player spawns (actually entered the server)*

If they rejoin before you ban there ID, they are able to rejoin, once they leave they are banned. (Normally we just kick them)

Hmm, I'm surprised the source engine wouldn't kick them in that state, but we'll look into it.
Experiencing God's grace one day at a time.

Offline Willdy

  • Jr. Member
  • **
  • Posts: 54
  • Karma: 1
Re: Ban kick
« Reply #6 on: September 12, 2011, 03:19:15 PM »
Had any progress on this idea? :o

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ban kick
« Reply #7 on: September 21, 2011, 04:55:49 PM »
Had any progress on this idea? :o

Changed to kick users who are banned while joining in ULib rev 194.

We get around to these things (usually), you just have to be patient with us. :P
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ban kick
« Reply #8 on: September 21, 2011, 07:11:42 PM »
I'm still confused...if a person is banned, how do they ever get far enough onto a server for the server lua engine to even engage the client?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ban kick
« Reply #9 on: September 21, 2011, 08:00:41 PM »
I'm still confused...if a person is banned, how do they ever get far enough onto a server for the server lua engine to even engage the client?

I'm kicking them through console. Even though the source version of kick ban won't kick connecting clients, I can still use the regular kick command on connecting clients. :)
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ban kick
« Reply #10 on: September 21, 2011, 08:46:13 PM »
I understand what you're doing. I don't understand how it would work.
My understanding of Source and Gmod is that... Source sees the ban..never lets the client fully connect enough for Gmod lua engine (which ULib runs in) to even see the player enough to kick them through console.
Just my understanding.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming