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'
@jakenem12
Try doing:
So you would type: /t create name
Hello, 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.
@Makemyday17
Post your config?
It 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.
Yes I did, I use spigot btw, does it work with spigot builds?
@Makemyday17
Did you do /cshortcut reload?
It 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
Would 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 :)
Great 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 ...
Also 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.
@zdzoz
Or plugin support for command cooldown http://dev.bukkit.org/server-mods/command-cooldown/
Please 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!
@QuAd205
It does not need updating.
Plugin needs updating for 1.5.2. Custom commands aren't working.
Do you need to give permissions to the commands you create if so how would you
@chaseoes
You can't do this for custom commands, it doesn't auto-complete. Do you think you can add that?
@shawn7654321
You can do this with any command.
for auto correct start typoueing a name and hit tab button it will finish the names for y
@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.
@QuAd205
Something like this would work?