UltraCommand
UltraCommand allows a server administrator to define custom commands that can send the executing player messages, run commands as the player or as the console, and more!
Usage
Add a command named <name>:
/uc add <name>
Add an element with content <value> to the command <name>:
/uc add <element> <name> <value
where <element> is one of:
text- Text that will be sent to the player. Colour codes using '&' can be used.chat- Chat messages that will be force-sent by the player. Colour codes using&can be used.pcmd- Commands that will be run as the player. The leading slash is optional.ccmd- Commands that will be run as the console. The leading slash is optional.
If the command named <name> does not exist when this command is run, it is automatically created. This makes it optional to create it with /uc add <name> beforehand.
The element value can contain substitutions (placeholders for data that is specific to a certain time and context a command is run in). A list of substitions is available further down the page.
Examples
Define /ranks to display a list of server ranks to the player:
[/uc add ranks]
/uc add text ranks &eOur server's ranks:
/uc add text ranks &e- &aBuilder
/uc add text ranks &e- &aForeman
/uc add text ranks &e- &aArchitect
/uc add text ranks &e- &aPlanner
/uc add text ranks &e- &cAdmin
/uc add text ranks &e- &bCEO
Define /welcome <player> to show a welcome message to a new player in a chat message:
[/uc add welcome]
/uc add chat welcome Welcome to the server, $1!
The $1 substitution is used to refer to the actual content of <player> part of the command above.
Define /nightvision to give the player the Night Vision effect for an hour.
[/uc add nightvision]
/uc add ccmd nightvision /effect $p 16 3600 10
The $p substitution is used to refer to the player's username.
Substitutions
$p- The username of the player running the custom command.$d- The display name of the player running the custom command.$a- All arguments given to the custom command, separated with spaces (e.g. for passing to another command).$1,$2,$3etc. - The arguments given to the custom command.
Commands
/ultracommand can be used as an alias to /uc.
/uc add <name>- Add a command named<name>./uc add text <name> <text>- Add text<text>to command<name>./uc add chat <name> <chat>- Add chat message<chat>to command<name>./uc add pcmd <name> <command>- Add player command<text>to command<name>./uc add ccmd <name> <command>- Add console command<text>to command<name>./uc list [name]- List all commands, or the elements of command<name>./uc reload- Reload the configuration from disk./uc remove <name>- Remove command<name>./uc remove text <name>- Remove all text from command<name>./uc remove chat <name>- Remove all chat messages from command<name>./uc remove pcmd <name>- Remove all player commands from command<name>./uc remove ccmd <name>- Remove all console commands from command<name>./uc save- Save configuration modified in-game to disk (this is done once per minute automatically).
Permissions
ultracommand.configure- Gives access to use/ucand/ultracommand.ultracommand.commands.*- Gives access to use all custom commands defined with this plugin.ultracommand.commands.<name>- Gives access to use the command named<name>defined with this plugin.
Source code
The plugin's source code can be found on its Github repository.
Support
If you have a bug report or feature request, bear in mind that I rarely check the comments on my plugins. Consider opening an issue on GitHub for a swifter response, as this will notify me by email.
-
View User Profile
-
Send Message
Posted Jan 4, 2015Anyway you could add an argument to create a delay between lines?
For example:
feather: consoleCommands: - give $p feather 1 - %10 - spawn $p
The %10 would be the delay.
-
View User Profile
-
Send Message
Posted Oct 24, 2014Is it possible to create a delay between uc chat?
-
View User Profile
-
Send Message
Posted Jun 4, 2014How do I add multiple player/console commands to be executed for an ultracommand?
-
View User Profile
-
Send Message
Posted Jun 1, 2014@killyouslow
Hi killyouslow, I'm afraid it's not possible to do multiple arguments with UltraCommands commands, However, I find using something like /ma_leave works fine :)
-
View User Profile
-
Send Message
Posted May 23, 2014how do you add a command that has multiple arguments?
like when players execute /ma leave
how do i turn a command that has multiple arguments into a custom command?
like /warp lobby
or /sg join
-
View User Profile
-
Send Message
Posted May 8, 2014@danjb2000
ok thanks
-
View User Profile
-
Send Message
Posted May 1, 2014@Max633
Not implemented although I will look into this.
But you could just add a console command like so: /uc add ccmd [command] eco take $p [amount]
Or whatever your economy system does.
-
View User Profile
-
Send Message
Posted Apr 27, 2014How to add a cost to a command?
Thanks
-
View User Profile
-
Send Message
Posted Apr 6, 2014I got this plugin because I wanted another plugin to run the commands, can I not do that? :( It seems the custom commands only work if they're run by the player directly
-
View User Profile
-
Send Message
Posted Mar 17, 2014Thanks so much for 2k downloads guys, me and kier appreciate it.
-
View User Profile
-
Send Message
Posted Feb 8, 2014@hcrandall
It does, works with all versions since 1.5
-
View User Profile
-
Send Message
Posted Oct 29, 2013does this work in 1.7?
-
View User Profile
-
Send Message
Posted Oct 16, 2013<<reply 1768462="">>
slushydog07: You may need to install a permissions plugin if you haven't already done so, and give some or all of the permissions listed in the Permission section of the description to your players/groups.
If you're referring to not having access to use the
/ucor/ultracommandcommands, you'll need to addultracommand.configure.If you're referring to not having access to commands created with this plugin, you'll need to add
ultracommand.commands.<name>where<name>should be replaced with the name of the command (alternatively you can giveultracommand.commands.*which gives access to all commands created with this plugin).-
View User Profile
-
Send Message
Posted Oct 16, 2013<<reply 1758580="">>
helloknocknock: I thought that the Bukkit API did this by default, but obviously not. I'll look into implementing this.
-
View User Profile
-
Send Message
Posted Oct 16, 2013<<reply 1524323="">>
cheese0wnz: Currently there isn't a way to do this through the in-game commands, but you can edit the line in the configuration and then run
/uc reloadto accomplish this task.-
View User Profile
-
Send Message
Posted Sep 10, 2013for me it says you dont have access to this command. what do i do...
-
View User Profile
-
Send Message
Posted Sep 5, 2013Great job :D Can you make an enhancement to this plugin?
i wish to use the tab after the command to acquire the full in game name of a player
Example /uc add b /uc add pcmd b /ban $1
In practice /b A(press tab)
/b armeli0n
-
View User Profile
-
Send Message
Posted Aug 6, 2013Would it be possible to add an option in the config to edit the no-permission message?
Currently when someone issues a command they don't have access to, they get the message
You don't have the permission for this command
(ultracommand.commands.xxx)
It would be better if we could make it say You don't have access to that command, as this would fit in better with the other commands.
-
View User Profile
-
Send Message
Posted Jun 13, 2013Oh my god this is an amazing plugin, but IT DOSENT WORK AND IM WITH 1.5.2 PLEASE FIX IT!
-
View User Profile
-
Send Message
Posted May 29, 2013Very nice, is there a way I can edit a certain line in the text of the command, so I don't have to re-do it every time I wan't to change?