CommandExecutor is a simple lightweight plugin that allows you to create aliases with configurable list of commands executed by console.
For exemple: you want to create a /newcommand. Just add in commands.yml an alias to /commandexecutor, and the console will execute every listed commands in config.yml. Thats all! /newcommand in game will execute all listed commands in config.yml.
Spoiler: Quick tutorial
1. Open config.yml and add in list the commands you want to execute:
commands:
mynewcommand:
- 'say %player% said hello!'
2. Open 'commands.yml' and add the new alias, with your new command name:
3. Reload your server
4. Done! (when a player enter /mynewcommand the console will execute the commands listed in config.yml)
Code (Text):
commands:
mynewcommand:
- 'say %player% said hello!'
Code (Text):
mynewcommand:
- commandexecutor mynewcommand
- commandexecutor mynewcommand
4. Done! (when a player enter /mynewcommand the console will execute the commands listed in config.yml)
Spoiler: Example of utilisation
Spoiler: Tutorials
- Config: customizable config.yml: add new commands, choose if they need permission, send configurable player message.
- Using command arguments: easily retrieve arguments for commands
- Unlimited commands: create as many commands/aliases as you want
- Full support of reload
Spoiler: config.yml
Code (Text):
##########################################################
# +————————————————————————————————————————————————————+ #
# |————————— COMMANDEXECUTOR CONFIGURATION ——————————| #
# |—————————————————— v1.3 ——————————————————| #
# +————————————————————————————————————————————————————+ #
# | For any bug/questions/suggestions: | #
# | visit the main thread. | #
# +————————————————————————————————————————————————————+ #
##########################################################
# Permissions list:
# - commandexecutor.access : give access to the command (by default for everyone)
# - commandexecutor.reload : give acces to the reload command (by default only for op)
# +————————————————————————————————————+ #
# |———— Configuration ————| #
# +————————————————————————————————————+ #
# List of commands executed by console when a player enter /ce <command> (or his aliases); without backslash '/'
# Every commands can be renamed by aliases.
# Differents variables can be used: (options, if wanted, must be writted first; and after, you can use the utilities)
# Variables:
# %player% = player name
#
# Command options: (have to be writted first, in the command list)
# %executor:player%: command will only be executed by the player (if not entered, command will be executed by default by console)
# %permission%mycommand.mypermission = need the permission to execute the command
# %usage%[MyCommand] &2Usage: /mycommand <arg1> = to show the command usage, if not used well.
#
# Utilities:
# %sendMessage%MyMessage = send message to the player
# %broadcast%MyMessage = send message to all online players
# %say%MyMessage = the player will say MyMessage in chat
# %argX% = argument number X (X < 0)
# %argAllX%: to get all arguments in a single argument, except the first X ones (for example: creating a message with arguments)
#
# Quick tutorial to create a command: https://github.com/Andross96/CommandExecutor/wiki/Create-a-new-command
# Quick tutorial to replace an existing command: https://github.com/Andross96/CommandExecutor/wiki/Recode-an-existant-command
# More config.yml informations: https://github.com/Andross96/CommandExecutor/wiki/Configuration-file
commands:
welcome:
- '%executor:player%'
- '%say%&l&aHello, welcome to our server!'
- '%say%&aThis is a simple survival server. Use /kit info to get a book!'
- '%say%&2You can visit our website for more informations.'
kick:
- '%permission%mycoolcommand.kick'
- '%usage%[MyKick] &2Usage: /kick <player> <reason>'
- 'minecraft:kick %arg1% %argAll1%'
- '%broadcast%&2%player% just kicked %arg1% for %argAll1%.'
# Message for no-permission:
no-perm: '&cYou don''t have permission.'
# Message for unknown command:
unknown-command: '&cUnknown command. Type "/help" for help.'
# Show in console when a player used /commandexecutor
sendConsoleMessage: true
# +————————————————————————————————————————————————————+ #
# |————————— COMMANDEXECUTOR CONFIGURATION ——————————| #
# |—————————————————— v1.3 ——————————————————| #
# +————————————————————————————————————————————————————+ #
# | For any bug/questions/suggestions: | #
# | visit the main thread. | #
# +————————————————————————————————————————————————————+ #
##########################################################
# Permissions list:
# - commandexecutor.access : give access to the command (by default for everyone)
# - commandexecutor.reload : give acces to the reload command (by default only for op)
# +————————————————————————————————————+ #
# |———— Configuration ————| #
# +————————————————————————————————————+ #
# List of commands executed by console when a player enter /ce <command> (or his aliases); without backslash '/'
# Every commands can be renamed by aliases.
# Differents variables can be used: (options, if wanted, must be writted first; and after, you can use the utilities)
# Variables:
# %player% = player name
#
# Command options: (have to be writted first, in the command list)
# %executor:player%: command will only be executed by the player (if not entered, command will be executed by default by console)
# %permission%mycommand.mypermission = need the permission to execute the command
# %usage%[MyCommand] &2Usage: /mycommand <arg1> = to show the command usage, if not used well.
#
# Utilities:
# %sendMessage%MyMessage = send message to the player
# %broadcast%MyMessage = send message to all online players
# %say%MyMessage = the player will say MyMessage in chat
# %argX% = argument number X (X < 0)
# %argAllX%: to get all arguments in a single argument, except the first X ones (for example: creating a message with arguments)
#
# Quick tutorial to create a command: https://github.com/Andross96/CommandExecutor/wiki/Create-a-new-command
# Quick tutorial to replace an existing command: https://github.com/Andross96/CommandExecutor/wiki/Recode-an-existant-command
# More config.yml informations: https://github.com/Andross96/CommandExecutor/wiki/Configuration-file
commands:
welcome:
- '%executor:player%'
- '%say%&l&aHello, welcome to our server!'
- '%say%&aThis is a simple survival server. Use /kit info to get a book!'
- '%say%&2You can visit our website for more informations.'
kick:
- '%permission%mycoolcommand.kick'
- '%usage%[MyKick] &2Usage: /kick <player> <reason>'
- 'minecraft:kick %arg1% %argAll1%'
- '%broadcast%&2%player% just kicked %arg1% for %argAll1%.'
# Message for no-permission:
no-perm: '&cYou don''t have permission.'
# Message for unknown command:
unknown-command: '&cUnknown command. Type "/help" for help.'
# Show in console when a player used /commandexecutor
sendConsoleMessage: true
- commandexecutor.access - give access to the command /commandexecutor (or /ce)
- commandexecutor.reload - give access to the /ce reload command, to reload the config.yml (default: for op)
By default, the plugin will always send unknown command message (from config.yml) if the command isn't used well.
--------------------------------------------------------------------
Official wiki: -> https://github.com/Andross96/CommandExecutor/wiki
For any bugs/questions/suggestions: -> PM me here or on discord (Andross#5254)
--------------------------------------------------------------------
If you like this plugin, please rate it and/or leave a comment! Thanks!
Or give me a coffee:
![[IMG]](http://proxy.spigotmc.org/123abde3a786c0799d11cdb2d2c51a73daf0fb08?url=https%3A%2F%2Fwww.paypalobjects.com%2Fwebstatic%2Fen_US%2Fbtn%2Fbtn_donate_cc_147x47.png)
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
CommandExecutor is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 1,219 times (via Spigot). Download it and open it directly in the game.