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'
Could you add a %player variable? Example: /pex promote %player -> /pp %player
@Harmings
You could make one that makes /SHOP run /shop.
It would be nice if you can make it where you can you caps in the command, example: I have /shop for /warp shop, So I would be able to do /SHOP or /Shop not just /shop
I have set this in the config: /ticket - /ds create %0 But if I do /ticket Help Me for example, then this is the ticket '%0' So he don't take the variables, but he just take %0 How can I solve this? What do I wrong?
EDIT: This is really stupid, I had version 1.1 but that only works in 1.2 xD
@chaseoes
Yeah, Mind helping me? I'll PM you the IP
I even reset the config... nothing.
@muffinjello
Have you done /cshortcut reload?
The custom commands don't seem to be working! Not too sure what's up, even the default /test commands that come with it don't seem to work.
The /cshortcut command seems to work fine, telling me who the plugin is made by.. So confused!
I'm an OP btw, should I still ad the permissions to myself?
I just wanted to say - this is a great addition to my server. Thank you for your work, keep it up. :D
Hrm I followed your instructions and when the command is executed all it says in the console is %console pex user [nameofpersonexecutingcommand] group set Member
no delay, nothing happens.
@Mortalsinn
Have the player execute a custom command upon joining:
This is great - can you give me an example how this can auto execute a command on a new player joining a server after a defined amount of time? the command I want to execute is /pex user [name] group set Member after 61 min of a player joining the server
@chaseoes
Yesterday the button wasnt working, but thanks
@JeterLP
There is a GitHub button in the description.
@Nfell2009
This is the result of screwing up your YML formatting.
Bug!
My config.YML file keeps reseting down to filesize 0 when I do /cshortcut reload - but thats the only way I can update it without doing a full server restart.
@chaseoes
where can I find this on GitHub?
@Nfell2009
Example?
Anyway I can continue the command?
So I can make a pay command? But change it instead of /pay
@0dayRUDE
use "quotes" ?
:( sad face. Could I see the source code? I would like to see how you told console to execute command?
Github link isnt working :(