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'

-
View User Profile
-
Send Message
Posted Oct 8, 2013Please to add features:
only an error message in a log file, please dont wipe my config!!
one command that lists all the commands added, with a permission line for this
Please to add some config options at the top
i would really like my commands NOT to be CaSe sensitive
many thanks!
-
View User Profile
-
Send Message
Posted Aug 29, 2013@chaseoes
can you gimme an example please.
-
View User Profile
-
Send Message
Posted Aug 26, 2013@TheMysteriousYT
Thanks SOOO much, it now works a charm :D
-
View User Profile
-
Send Message
Posted Aug 25, 2013@djt8000
I had the same problem after I messed up the config and the server cleared the config.yml file. I entered everything again but it wouldn't work because I missed something. I found the solution by looking into the default config in the .jar file.
You forgot 'commands:', in the line under 'permissions: party.start' Also you forgot some apostrophes here and there, but I don't know if that does any harm. To be sure it works, just add them. In the second shortcut you put the permission after the shortcut, it should be in the next line after 'permission:'
The example config in the plugin description doesn't really show how to do it. I made pastebins of a better example config and your config, the right way. (I think)
An example should look like this:
Example Config
Your config should look like this:
Your Config
I hope this helps you out.
- TheMysterious
-
View User Profile
-
Send Message
Posted Aug 20, 2013What is the problem with my config??
Everytime I do /cshortcut reload it just wipes the config?!
commands:
/partystart:
permission: party.start
- '%console say &a &l In One Minute The Party Room Will Open!
- '%delay-50 %console say &a &l 10 Seconds...
- '%delay-60 %console say &a &lThe Party Has Now Started, Walk through the portal at spawn!
- %delay-60 /gate open party
/partyend: party.end
- '%console say &c &l In One Minute The Party Will End!
- '%delay-50 %console say &c &l 10 Seconds...
- '%delay 60 %console say &c &l The Party Has Now Ended
- /gate close party
- %delay-60 /scoreboard players set djt8000 party 1
/coins:
- /econ
btw it wiped it so i had to start from scratch and the scoreboard is part of a system i am using
-
View User Profile
-
Send Message
Posted Aug 19, 2013@derpcraftv3
You can.
-
View User Profile
-
Send Message
Posted Aug 19, 2013Im not sure if there already is a way to do this but if not could you add it so you can make a command "/test <player> then words go here" and it runs the command "/message <player> message"
-
View User Profile
-
Send Message
Posted Aug 10, 2013When I add a command and reload the config goes blank
-
View User Profile
-
Send Message
Posted Aug 6, 2013@Allateef
Yes, you would create separate commands for each.
-
View User Profile
-
Send Message
Posted Aug 5, 2013Hey there! Thanks for this awesome plugin. I have a question. Is there a way to add multiple "shorcuts" in a single command?
Example: /test /test2 /test3: - '%console say Just a test'
Cheers and thanks in advance!
-
View User Profile
-
Send Message
Posted Jul 28, 2013Please update this to 1.6.2! There is a bug so i cant make any commands and any premade command doesnt work
-
View User Profile
-
Send Message
Posted Jul 11, 2013@chaseoes:
Well, This Is Really Good For Creating Shortcuts and aliases, but the permissions dont seem to be working for the kingkits plugin? Its kinda confusing cause i add the right node and it still wont work?
-
View User Profile
-
Send Message
Posted Jul 9, 2013@JamiePhonic
Ya, that would work too, its more organized too, lol
-
View User Profile
-
Send Message
Posted Jul 8, 2013-
View User Profile
-
Send Message
Posted Jul 3, 2013jakenem12 When I /cshortcut reload and I leave out the ' at the end of one of the commands it will erase the entire file and I have to start over.
-
View User Profile
-
Send Message
Posted Jun 25, 2013@reed19629
Ive made errors before, and I /cshortcut reload all the time with them. It doesn't wipe the config for me. Are you just /reload ing?
Also Chaseoes, its been a few days, Do you think you will eventually add support for the spaces? as i talked about below? Its be very useful <.<, i wouldn't have to use yet another plugin for command aliases, i would be able to do it all in this one.
-
View User Profile
-
Send Message
Posted Jun 24, 2013If you have an error in your config you should make it so that it doesn't wipe the entire file when you reload... Also when it gets wiped the Configuration above doesn't have the permission: commands: under the /<command>
-
View User Profile
-
Send Message
Posted Jun 18, 2013@chaseoes
Yes, but using this method i will only be able to use one...for example I wont be able to do
Not to mention, it would also break every other /t <arg> command I have,
-
View User Profile
-
Send Message
Posted Jun 18, 2013@jakenem12
What about:
And then they could type /t create name?
-
View User Profile
-
Send Message
Posted Jun 18, 2013@chaseoes
Nope, didn't think that would so anything, and it didn't. That just runs /t create name which is an unknown command for towny.