Author Topic: Wanting to disable the ulx ban module but still log the bans.  (Read 3076 times)

0 Members and 1 Guest are viewing this topic.

Offline ericprince811

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Wanting to disable the ulx ban module but still log the bans.
« on: November 01, 2015, 08:53:00 PM »
I want the ulx ban command to still be fully function and be able log the person and the ban. However I do not want it to where after the kick happens the ban message comes up on rejoin. What my goal is I am trying to replace the ban system to where they can rejoin but if found on the ulx ban list it will jail on spawn. Do not question I just need a straight answer.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Wanting to disable the ulx ban module but still log the bans.
« Reply #1 on: November 01, 2015, 09:08:26 PM »
Can't be done using normal ULX.

This area isn't the place to discuss how: the Developers Corner is.
Use ULib's command call translate hooks to intercept the ulx ban command and do whatever you wish.
I strongly advise modifying ban though.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ericprince811

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Wanting to disable the ulx ban module but still log the bans.
« Reply #2 on: November 02, 2015, 07:11:48 AM »
How would i go upon doing so? I also am using the jail on spawn dor something much bigger. Its only a test stage.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Wanting to disable the ulx ban module but still log the bans.
« Reply #3 on: November 02, 2015, 03:16:49 PM »
I really don't recommend doing this as a replacement for ban.
No, really.
Too much to go wrong. Make a new punishment, and remove ban from any admin staff you don't want banning but don't mind jailing.

There are several ULib hooks to monitor for what you want though.
One possible -  "ULibPlayerTargets"
Monitor for "ulx blah" command, the write your own code/tracking/logging/whatever, return false, "message" to ULX and it will stop the "blah" command
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Wanting to disable the ulx ban module but still log the bans.
« Reply #4 on: November 02, 2015, 06:49:18 PM »
Either way it's going to be a bit of work. If you want to replace ban, I'm sure there is a lot of code you need to replace. But if you don't replace ban but want the ban logging functionality, then you'll need to copy the logging code.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given