Author Topic: addParam{ type=ULib.cmds.PlayersArg } && table.insert( affected_plys, v )  (Read 2949 times)

0 Members and 1 Guest are viewing this topic.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
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.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
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?
Experiencing God's grace one day at a time.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
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.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
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)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
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.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.