-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration file
André edited this page Apr 8, 2019
·
2 revisions
Config.yml:
##########################################################
# +————————————————————————————————————————————————————+ #
# |————————— 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)
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
commands (List): list of list of commands executed in /commandexecutor. e.g: if list contains a 'test' list command, the final command will be /commandexecutor test. First, you have to enter the options (but they are all optionals), after then, you can use the utilities:
- Options to the command:
-
- %executor:player% = By default, commands are executed by console (so, OP rights). With this option written, the command will be executed by the player.
-
- %permission%mycommand.mypermission = The permission mycommand.mypermission will be needed to execute the command
-
- %usage%MyMessage = The plugin will show MyMessage if the command isn't used well. If this option isn't entered, the plugin will show by default "unknown-command".
-
- Utilities:
-
- %player% = name of the person who executed the command _(e.g: Andross)
-
- %sendMessage%MyMessage = send MyMessage to the player
-
- %broadcast%MyMessage = send MyMessage to all online players
-
- %say%MyMessage = the player will say MyMessage in chat
-
- %argX% = argument number X of the command(X must be superior & not equals to 0). For example, if someone use command /test myarg1 myarg2, using %arg1% will give you "myarg1".
-
- %argAllX% = will create an unique text with all arguments, starting with argument X. _For example, if you want to get a message in the command /msg Test my cool message, using %argAll1% will give you "my cool message".
-
no-perm (String): simple message send to players when they don't have the permission
unknown-command (String): simple message send to players when they don't used well the command
sendConsoleMessage (Boolean): if true, the plugin will write in console everytime a player used a command from CommandExecutor