🏴󠁧󠁢󠁥󠁮󠁧󠁿
en
  • Overview
    • 💡About me
  • Free resource
    • 🪓TreeCuter
      • 💻Commands
      • 📑Config
      • 👍Addons
      • ✨Glowing
      • 🧑‍💻API
    • 📘BetterCommands
      • 🆘Wiki
      • 📑Config
    • ✅DiscordMc
  • Paid Resource
    • 🏠BetterPlots
Powered by GitBook
On this page
  • Create your first command!
  • Actions
  • Commands
  • Placeholders
  • Hex
  1. Free resource
  2. BetterCommands

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.

When you add new command or change name existing command, you need to restart server!

Bukkit server don't support add new commands without restart server :c


Placeholders

{PLAYER} - player name who use command.


Hex

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

PreviousBetterCommandsNextConfig

Last updated 1 year ago

For other placeholders, use plugin.

📘
🆘
PlaceholderAPI
Hex codes