General > Developers Corner

addParam{ type=ULib.cmds.PlayersArg } && table.insert( affected_plys, v )

(1/1)

Bite That Apple:
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.

Megiddo:
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?

Bite That Apple:

--- Quote from: Megiddo on May 09, 2013, 06:03:29 AM ---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?

--- End quote ---

.. I can't believe it was that simple. I must have 'misread' or didn't really think about the "s" in PlayersArguments. Thank you.

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

Bite That Apple:

--- Quote from: JamminR on May 10, 2013, 02:30:48 PM ---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)

--- End quote ---

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.

Navigation

[0] Message Index

Go to full version