Ulysses

General => Off-Topic => Topic started by: dbodz on November 26, 2014, 09:25:13 AM

Title: A command that stops users from doing '!ban *'???
Post by: dbodz 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.
Title: Re: A command that stops users from doing '!ban *'???
Post by: Decicus 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.
Title: Re: A command that stops users from doing '!ban *'???
Post by: Bytewave 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.
Title: Re: A command that stops users from doing '!ban *'???
Post by: Megiddo 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! ;)
Title: Re: A command that stops users from doing '!ban *'???
Post by: JamminR 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.