Author Topic: A command that stops users from doing '!ban *'???  (Read 2064 times)

0 Members and 1 Guest are viewing this topic.

Offline dbodz

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
A command that stops users from doing '!ban *'???
« on: November 26, 2014, 09:25:13 AM »
I've been involved with a few servers over the past few years whereby admins have gone 'fudge this' and banned everyone from the server.
I would like to make a way to stop this so when they type '!ban *' or use the console command 'ulx ban *', it has no effect and instead bans the person that uses it.
Now I'm just not sure where to start for this one.
Is it possible?


Thanks a ton,
~DBodz.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: A command that stops users from doing '!ban *'???
« Reply #1 on: November 26, 2014, 11:26:17 AM »
I'm 99% sure that stock ULX doesn't allow "ulx ban *" or "!ban *" from being used at all - Even as a superadmin.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: A command that stops users from doing '!ban *'???
« Reply #2 on: November 26, 2014, 11:45:32 AM »
I'm 99% sure that stock ULX doesn't allow "ulx ban *" or "!ban *" from being used at all - Even as a superadmin.
I'm 100% sure that ulx ban requires a PlayerArg, not a PlayersArg. So, yes– ulx ban * is not possible unless modified to do so.
bw81@ulysses-forums ~ % whoami
Homepage

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: A command that stops users from doing '!ban *'???
« Reply #3 on: November 26, 2014, 02:48:44 PM »
Decicus and Bytewave are correct. This is already not possible. In short, happy we could help you! ;)
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: A command that stops users from doing '!ban *'???
« Reply #4 on: November 26, 2014, 08:47:24 PM »
And to answer the second part of your question. ULib has hooks called when ULX commands are run that could be programmed to look for "ulx ban *" and ban calling player.
Team Ulysses likely won't do it for you, but, it would be a great chance for you to 1) learn Lua. 2) Learn ULib 3) Learn Ulib construct and program it yourself.
Ask for assistance/tips in the Developers Corner section of the forum.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming