Ulysses
General => Developers Corner => Topic started by: Bite That Apple on May 08, 2013, 10:51:50 PM
-
So I was wondering if there was a way to make it so that if I type !ULXCMD, I would have to put a name down instead of being able to do * for everyone. Is there a way to make it like that, because I don't want admins abusing some of the commands like !slay anymore, so I want to remove the * and they would have to type the entire name out or use xgui.
-
There's not easy way to force people to type out whole names as opposed to using the intelligent targeting system. We did not plan on users wanting to intentionally encumber administration. :P
You can disable multiple targets (and therefore the '*' keyword) by using "PlayerArg" instead of "PlayersArg". Is this what you're looking for?
-
There's not easy way to force people to type out whole names as opposed to using the intelligent targeting system. We did not plan on users wanting to intentionally encumber administration. :P
You can disable multiple targets (and therefore the '*' keyword) by using "PlayerArg" instead of "PlayersArg". Is this what you're looking for?
.. I can't believe it was that simple. I must have 'misread' or didn't really think about the "s" in PlayersArguments. Thank you.
-
You do know about Ulib docs, right?
http://www.ulyssesmod.net/docs/
http://ulyssesmod.net/docs/files/lua/ulib/shared/commands-lua.html#cmds.PlayerArg is for PlayerArg, below it is PlayersArg
(Just checking to make sure you know of the library documentation...many don't, or just try to use our comments within the code itself, which, our docs pull from, but, aren't as neat and tidy)
-
You do know about Ulib docs, right?
http://www.ulyssesmod.net/docs/
http://ulyssesmod.net/docs/files/lua/ulib/shared/commands-lua.html#cmds.PlayerArg is for PlayerArg, below it is PlayersArg
(Just checking to make sure you know of the library documentation...many don't, or just try to use our comments within the code itself, which, our docs pull from, but, aren't as neat and tidy)
I do know about the Documents, I sometimes forget about them I try to find the "hard way" around things. Thank you though for reminding me about this. Maybe I can get my whitelist plugin to add into xgui sooner or later.