Command API thoughts
#7
Quote:Why would you want that anyway?
For example, if I need a shortcut that isn't listed. Or that is described in full command's help string. Or if I'm developing a plugin and absolutely must have numerous debug commands, but I don't want to mess up the /help list.

Permissions is not the point in my case. My point is the ability to make a command that will not be listed, yet which will be usable.

More than that, I might need the ability to have multiple help lines for a single command bind!
For example, I have Portals plugin. I need commands for swapping portal selection mode, for creating a portal entrance and for creating a portal exit. Now, in my mind, the ideal set of commands would be:
/portal mode
/portal enter (name)
/portal exit (name)
But I can't bind something to "/portal xxx", as far as I remember. Therefore I'm forced to either make "/pmode", "/penter" and "/pexit" commands OR make a "/portal" command and handle different cases through command split manually. First option works fine, but looks kinda ugly, the second one left me with no way to document it for /help properly (in your system). And is somewhat messy in terms of dealing with permissions, should I want to have different.

So, let's think about another way to handle it, so I could have both multiple discriptions and hidden commands.
Perhaps, it might be better if we'll work it around so I could even assign different functions to "/portal enter (name)" and "/portal exit (name)" automagically. And different permissions. We really might use some support for multi-word commands.
Reply
Thanks given by:


Messages In This Thread
Command API thoughts - by xoft - 01-30-2013, 05:44 AM
RE: Command API thoughts - by bearbin - 01-30-2013, 05:49 AM
RE: Command API thoughts - by Taugeshtu - 01-30-2013, 06:32 AM
RE: Command API thoughts - by xoft - 01-30-2013, 06:53 AM
RE: Command API thoughts - by Taugeshtu - 01-30-2013, 06:58 PM
RE: Command API thoughts - by xoft - 01-30-2013, 07:41 PM
RE: Command API thoughts - by Taugeshtu - 01-30-2013, 09:38 PM
RE: Command API thoughts - by xoft - 02-01-2013, 05:06 AM
RE: Command API thoughts - by Taugeshtu - 02-01-2013, 05:45 AM
RE: Command API thoughts - by xoft - 02-01-2013, 07:18 PM
RE: Command API thoughts - by xoft - 02-02-2013, 05:57 AM
RE: Command API thoughts - by NiLSPACE - 02-14-2013, 05:21 AM
RE: Command API thoughts - by xoft - 02-14-2013, 05:24 AM
RE: Command API thoughts - by xoft - 02-15-2013, 11:11 PM



Users browsing this thread: 3 Guest(s)