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 Jun 18, 2013@jakenem12
Try doing:
So you would type: /t create name
-
View User Profile
-
Send Message
Posted Jun 18, 2013Hello, i know this was semi possible in your old plugin custom commands. Im trying to add a space inside my command forexample:
A good amount of my players type create instead of new, when creating towns, but i cant get a space in there, as it wont work. but back when i used custom commands for chat messages i could do stuff like /rules pvp, and it would work, but here it doesent and i had to remove the space :(. Think you could add support for this? I Could do stuff like /newtown if i wanted too, but that isent players first guess when creating towns.
-
View User Profile
-
Send Message
Posted Jun 15, 2013@Makemyday17
Post your config?
-
View User Profile
-
Send Message
Posted Jun 15, 2013It don't work with either spigot or craftbukkit. It says unknowncommand when you try to perform any command that you've created in the config. Even when you have the permissions for them as well and OP. /cshortcut reload is working tho, so the plugin is enabled. Please update this to 1.5.2 if that is the problem. It's a great idea, and would be one of the best plugins ever if it did work :P honestly.
-
View User Profile
-
Send Message
Posted Jun 14, 2013Yes I did, I use spigot btw, does it work with spigot builds?
-
View User Profile
-
Send Message
Posted Jun 14, 2013@Makemyday17
Did you do /cshortcut reload?
-
View User Profile
-
Send Message
Posted Jun 14, 2013It says unknowncommand for me :( when i try to use /test or a command i created myself... otherwise the best plugin ever.. really.. might be outdated I use 1.5.2 builds, but when i do /cshortcut it tells me info meanign it's enabled
-
View User Profile
-
Send Message
Posted Jun 9, 2013Would be the best plugin ever if there was a %world argument. Means you could make people set world specific homes with essential. You could do a lot more stuff too. If you could add this in I'd love you forever :)
-
View User Profile
-
Send Message
Posted Jun 4, 2013Great plugin, really really useful. fixed a long time standing but i had with a command which i didn't know how to fix... now, i simply alias the command with this plugin and throw out a message (or anything) -- plus this is great for instant-help! Works perfectly on 1.5.2 for me ...
-
View User Profile
-
Send Message
Posted May 22, 2013Also you can add a %pos variable that returns the x, y and z coordinates of the player. This so I can extend the /spawnpoint command with the previous spawn point in case the player wants to return.
-
View User Profile
-
Send Message
Posted May 12, 2013@zdzoz
Or plugin support for command cooldown http://dev.bukkit.org/server-mods/command-cooldown/
-
View User Profile
-
Send Message
Posted May 12, 2013Please add a variable which lets you launch commands as if you where that player!
E.g.
commands:
/kit <kitname>:
- '%player kit select <kitname>'
And could u add a variable which makes cooldowns! (seconds before player can use the command again)
E.g.
commands:
/vip:
- '%console give %name 388 50' (gives the player 50 emeralds)
- '%cooldown-43200' (12 hours before the command can be used again)
And if the player has already used it, it will say:
<red>You can use this command again in %nhour (hours) and %nmin (mins)!
Example with my stats:
<red> You can use this command in 12 hours and 0 mins!
-
View User Profile
-
Send Message
Posted May 12, 2013@QuAd205
It does not need updating.
-
View User Profile
-
Send Message
Posted May 3, 2013Plugin needs updating for 1.5.2. Custom commands aren't working.
-
View User Profile
-
Send Message
Posted Apr 29, 2013Do you need to give permissions to the commands you create if so how would you
-
View User Profile
-
Send Message
Posted Apr 27, 2013@chaseoes
You can't do this for custom commands, it doesn't auto-complete. Do you think you can add that?
-
View User Profile
-
Send Message
Posted Apr 27, 2013@shawn7654321
You can do this with any command.
-
View User Profile
-
Send Message
Posted Apr 27, 2013for auto correct start typoueing a name and hit tab button it will finish the names for y
-
View User Profile
-
Send Message
Posted Apr 27, 2013@chaseoes
That works but is it possible to add the auto complete feature for names on custom commands?
@shawn7654321: I know that already. I'm asking if this plugin can support it for custom commands.
-
View User Profile
-
Send Message
Posted Apr 26, 2013@QuAd205
Something like this would work?