Description
CommandOverride allows Admins to create custom Commands
without learning JAVA. You can specify Messages for a Command
and the plugin will then send Players these Messages when they
execute this Command.
Or you can also create Aliases for other Commands
Color Codes supported!
This can be very helpful for /vote or other informational Commands
Development Builds
Here you can find the most recent Versions of CommandOverride:
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/CommandOverride/master/
Keep in mind that these builds are not thoroughly tested and haven't been approved by the BukkitDev Team. Use them at your own risk!
Configuration
Detailed Configuration Tutorial
Command and Permissions
Well as this Plugin allows you to create your own Commands.
There can be endless Amounts of Commands and Permissions.
However it does add a reload command though.
Command | Description | Permission |
/reloadcommands | Reloads the CommandOverride config | CommandOverride.reload |
Variables
Variable | Example | Function |
<player> | <player> | Will be replaced with the name of the Player who executed the Command |
<players_online> | <players_online> | Will be replaced with the amount of Players who are currently playing on the Server |
<players_max> | <players_max> | Will be replaced with the maximal amount of Players who can be online on the Server |
[online: <permission>] | [online: permission.staff] | Will be replaced with a list of all online players who have this permission |
<rplayer> | <rplayer> | Will be replaced with the Name of a randomly chosen Player on the Server |
[rplayer <permission>] | [rplayer permission.staff] | Will be replaced with the Name of a randomly chosen Player on the Server who has that Permission |
<arg (index)> | <arg 0> | Will be replaced with an argument entered by the Player. Note here that Java is zero-indexed. 0 refers to the first specified argument here. |
<args (start index) - (end index)> | <args 0 - 10> | Will be replaced with the Arguments 0 - 10 seperated with a Space |
[unicode: <hexadecimal> | [unicode: 21E8] | This will be replaced with the Unicode represented by the specified Hexadecimal. A full list of all supported Unicodes |
Syntaxes
Variable | Example | Function |
[permission: <permission>] | [permission: permission.cheat] | Whatever stands behind this Variable will only be executed/sent if the Player has the specified Permission |
[!permission: <permission>] | [!permission: permission.cheat] | Whatever stands behind this Variable will only be executed/sent if the Player does not have the specified Permission |
[world: <World Name>] | [world: world_the_end] | Whatever stands behind this Variable will only be executed/sent if the Player is currently in the specified World |
[arglength smaller than X] | [arglength smaller than 2] | Whatever stands behind this Variable will only be executed/sent if the Player specified less than X arguments |
[arglength at least X] | [arglength at least 2] | Whatever stands behind this Variable will only be executed/sent if the Player specified at least X arguments |
command:/<command> | command:/say hello | Makes the Player execute the specified Command |
unsafe-command:/<command> | unsafe-command:/say hello | Makes the Player execute the specified Command Bypasses CommandOverride |
op-command:/<command> | op-command:/say hello | Makes the Player execute the specified Command as an Op |
console:/<command> | console:/say hello | Makes the Console execute the specified Command |
broadcast:<message> | broadcast:Hello world | Sends the specified Message to all online Players |
playsound <Player/all> <Sound> <Volume> <Pitch> | playsound all BLOCK_NOTE_PLING 1 1 | Plays a Sound to a specific Player or all Players on the Server |
broadcast[<permission>]:<message> | broadcast[permission.xyz]:Hello world | Sends the specified message to all Players who have the specified permission |
message[<player>]:<message> | message[mrCookieSlime]:Hello world | Sends the specified message to the specified player (Best used with arguments like <arg 0> |
WAIT <time in seconds> | WAIT 10 | This will wait the given amount of seconds before it will continue. Note that nothing is allowed to stand after this syntax |
WAIT-T <time in ticks> | WAIT-T 10 | This will wait the given amount of ticks (1 Tick = 1/20 Second) before it will continue. Note that nothing is allowed to stand after this syntax |
BREAK | BREAK | Will ignore all following messages. Note that nothing is allowed to stand after this syntax |
BREAK <Iterations> | BREAK 2 | Will ignore all following messages except for the first 2 |
RANDOM <amount> <total> | RANDOM 3 5 | Will only run 3 random lines of the Script from the following 5 lines Note that nothing is allowed to stand after this syntax |
[chance: <chance>] | [chance: 99] | This Syntax can only be used in combination with the RANDOM syntax, put it in front of either all your messages which are affected by the RANDOM syntax or leave it out completely. |
Plugin-based Variables
Variable | Description | Required Plugin |
<rank-prefix> | Will be replaced with the prefix of your permissions group | Vault |
<rank-suffix> | Will be replaced with the suffix of your permissions group | Vault |
<money> | Will be replaced with your Balance | Vault |
<gems> | Will be replaced with your Gems | PrisonGems |
Source Code
You want to take over this Project? Start so by submitting Pull Requests on GitHub!
https://github.com/TheBusyBiscuit/CommandOverride
Check out CommandOverride's Source Code, if you want to keep this Project alive, maybe even consider contributing to it by making a Pull Request!
Auto-Updater and Metrics
All my Plugins are using an Auto-Updater to make sure, you're always
using the latest and hopefully most bug free version of my Plugin.
If you don't want this Plugin to be auto-updated, you can turn it off
in the config file at "options -> auto-update: true/false"
They also use a Metrics-System which collects the following Informations:
A unique identifier
The server's version of Java
Whether the server is in offline or online mode
The plugin's version
The server's version
The OS version/name and architecture
The core count for the CPU
The number of players online
The Metrics version
Opting out of this service can be done by editing
plugins/Plugin Metrics/config.yml and changing opt-out to true.