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