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'
Hi,
why does cShortcut always add the examples? I would like it didn't.
@ThoLav
Oh alright lol
And to @Chaseos
Is there a way to add unlimited arguments??? ex:
Hi,
/cshortcut reload
I have a schortcut /csr ;)
Way to reload config with out reload of server or restart?
@chaseoes
First one to download R1.0 <3
Version 1.1 uploaded, adding delayed commands. It's currently waiting on approval.
@Icefuzion
Such as a delay for certain commands? Example:
Thanks for this plugin. I was looking for something simple and lightweight and this seems to be perfect.
Any chance you could add a timer with interval? eg. /emergencyshutdown causes a broadcast with a timer broadcasting time left every 15 seconds for 1 minute.
@ThoLav
There is a /cshortcut reload command.
Hi,
I'm missing the possibility to reload cShortcuts. Would be awesome if you would make it available. It sucks a bit having to restart the server for a little change.
Awesome plugin with cool shortcut feature!