cShortcut

cShortcut

Current version: 1.0

GitHub

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

VariableDescription
%nameThe name of the player executing the command.
%displaynameThe display name of the player executing the command.
%delay-xPrefix 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

CommandDescription
/cshortcutGeneral plugin information.
/cshortcut reloadReloads 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'

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files