General > Developers Corner

Wanting to disable the ulx ban module but still log the bans.

(1/3) > >>

ericprince811:
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.

JamminR:
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.

ericprince811:
How would i go upon doing so? I also am using the jail on spawn dor something much bigger. Its only a test stage.

JamminR:
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

roastchicken:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version