๐Ÿ†˜Wiki

Create your first command!

commands:
  info: # <- command name (without /)
    perm: 'info.admin' # <- permission to use this command
    perm-message: '&cYou cannot use this command!' # <- message when player don't have permission
    #multi actions
    actions:
      action-1:
        type: 'text'
        action:
          - '&#DBC7FFSended to all players!!' # <- to use HEX color, use &#HEXCODE
      action-2:
        type: 'broadcast'
        action:
          - '&aSended from {PLAYER}!'
          - '&aHI ALL!'

Actions

There are 5 types of actions.

replace

Replace command to another command.

/core -> /essentials

when player use /core reload it will replace to /essentials reload

commands:
  core: 
    perm: 'core.admin' 
    actions:
      action-1:
        type: 'replace' 
        action:
          - 'essentials' 

text

Send message to player who use command.

commands:
  info:
    actions:
      action-1:
        type: 'text'
        action:
          - '&#DBC7FF------[HELP]-----' 
          - '&7example text1' 
          - '&7example text2' 

broadcast

Broadcast message to all players on server.

commands:
  hi:
    actions:
      action-1:
        type: 'broadcast'
        action:
          - '&aSended from {PLAYER}!'
          - '&aHI ALL!'

server_command

Execute command as console.

commands:
  diamonds:
    actions:
      action-1:
        type: 'server_command' # <- execute command as console
        action:
          - 'give {PLAYER} minecraft:diamond 1' # (without /)

player_command

Execute command as console.

commands:
  vip:
    actions:
      action-1:
        type: 'player_command' # <- execute command as player
        action:
          - 'kit vip' # (without /)

Commands

/bettercommands reload - reload config.

Placeholders

{PLAYER} - player name who use command.

For other placeholders, use PlaceholderAPI plugin.


Hex

To use HEX color, use &#HEXCODE (ex. &#DBC7FF)

Last updated