cShortcut
cShortcut
Current version: 1.0
Tired of typing long commands or messages? Want to create a quick and easy to use shortcut? This plugin is for you! Define shortcuts for commands and create custom commands. This plugin is based off of and inspired by bShortcut, a plugin I used to use back in the day.
Features
- Define shortcuts for commands.
- Execute multiple commands by typing only one command.
- Make the player using the command execute a command, or make the console execute the command.
- Send the player and/or broadcast messages.
- Many variables are available (even user-supplied ones!).
Examples
- /j: Shortened from /jumpto.
- /s: Shortened from /spawn.
- /rollback [player]: Shortened from /lb rollback player [player] since 50 days.
- /help: Override the default command and send players the message "Go to our website for help!".
Variables
Variable | Description |
---|---|
%name | The name of the player executing the command. |
%displayname | The display name of the player executing the command. |
%delay-x | Prefix a command with this to have it delayed by x seconds |
%[number] | Any argument supplied to the command (e.g. /mynameis %1 - the %1 will turn into 'chaseoes' if the command used is /mynameis chaseoes.) Using %0 will return all arguments used. |
The variables available in the current version are limited. Suggest new ones below!
Commands
Command | Description |
---|---|
/cshortcut | General plugin information. |
/cshortcut reload | Reloads the configuration. |
Configuration (more examples!)
commands: /test: - '/me I just sent a command!' - '%message Only the command sender (%name) can see this!' - '%broadcast &4The entire server can see this!' - '%console say I was forced to do this command! :(' /myage: - '%broadcast %name says that they are %1 years old!' - '%message %name, are you sure that you are %1 and not 5?' /rollback: - '%message &2Attempting to rollback %1 for %2 days...' - '/lb rollback player &1 since %2 days'
Is there anyway to use this for existing commands ? I am trying to use an already existing command to add a person to a group when they type the command, but after I add it to the config and use the command in-game it only seems to detect the existing command, an example would be : /b choose fire manuadd %n Firebender BendPvP : using the console execute cmd.
Oh goodness.... I just found out that the plugin does not allow spaces in the /command area :\ lol Is there any possible way to allow for spaces in the command name.. ?
@Mc_Drizzle
It's possible, however it would be messy to do and something I won't do at this time.
@chaseoes
Hey, can you make it so the commands we make that come up with a response-will show up in essentials.help? So players can actually see there is a command like that when they go /help? That would be awesome!
@soccerstrike917
Rgwy qousl nwws vorg.
how do I use the permissions nodes? cShortcut.<customcommand>
or do the players have to have permission to use the full command
example: for a /spawn shortcut for the full command /warp spawn. would they need permission to use /warp spawn and the /spawn? or just the permission node for /warp spawn
@chaseoes
Why deletes this plugin the config.yml, when an error comes up. Because other plugins do so?
@chaseoes
i don't really think alot of plugins delete all your text because an error :\
@MICHAELBYRNEfbi
Can you post the full configuration on pastebin.com?
@Chaseos Why would this not work? Config * commands: /Classes:
(no stars)
@amitkilo
Almost every YAML-using plugin does this.
Check your file for mistakes first using this: http://yaml-online-parser.appspot.com/
Work Awesome, i really like this plugin, but there is one problem, if you make 1 mistake it will delete the file..
Again, thanks for making this awesome plugin and thanks for taking my advice on the interval! :P
@chaseoes
I figured it out with permissions. Works great. Best ShortCut Plug I ever used and tried. Easy to configure and very powerful.
I have one wish: It would be great if an error is found in the config.yml, that it gets not deleted/emptied. Would be great if you add this feature.
@ThoLav
Can you post the configuration you're attempting to use?
1.2 Works perfectly! :D Thanks
@chaseoes
Hi,
I downloaded the 1.2
1. %0 works great.
2. how to configure permissions?
3. I get an error with : in text, even if it's starts and ends '
4. It would be great if an error is found, the config.yml get's not deleted
Great Plugin, I hope this continues updated
@kahlilnc
I will add %0 for all of them. :)
@ThoLav
Permissions will be added in v1.2.
@kahlilnc
/cshortcut reload
Hi,
permissions are urgently needed. If you create an shortcut like my example, anybody is able to execute it.
My suggestions for group and player rights, any group/player who is listed, may execute. Others may not.
Thanks a lot for this. Ive enjoyed bShortcut back in the day in which recently ive had to use plugins that contain other features which enlarges the file size just to change a command.
Really appreciate the release, thanks a lot and I hope this stays active.