https://github.com/norbit4/bettercommands
Command creator plugin to game minecraft
https://github.com/norbit4/bettercommands
bettercommands bukkit chat commands spigot
Last synced: about 2 months ago
JSON representation
Command creator plugin to game minecraft
- Host: GitHub
- URL: https://github.com/norbit4/bettercommands
- Owner: Norbit4
- License: gpl-3.0
- Created: 2023-10-07T22:15:47.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-05T15:38:53.000Z (over 1 year ago)
- Last Synced: 2025-01-19T21:32:36.967Z (over 1 year ago)
- Topics: bettercommands, bukkit, chat, commands, spigot
- Language: Java
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.spigotmc.org/resources/%E2%9C%A8bettercommands%E2%9C%A8-easily-create-commands-%E2%9C%85.113189/)
[](https://builtbybit.com/resources/bettercommands-easily-create-commands.33345/)
[](https://github.com/Norbit4/TreeCuter/blob/master/LICENSE)
#
**Commands**
/bettecommands reload - reload plugin 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
#
***Config***
```yml
#---------------------------------------#
# [Help] #
#---------------------------------------#
# 1.Reload config:
# To reload config use /bc reload, or /bettercommands reload command.
# [!] 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
# 2.Actions:
# - replace:
# replace command to another command
# ex. /core -> /essentials, when player use /core reload it will replace to /essentials reload
# - text:
# send message to player who use command
# - broadcast:
# broadcast message to all players on server
# - server_command:
# execute command as console
# - player_command:
# execute command as player
# 3.Sub-commands:
# - You can create sub-commands for main command
# - To use sub-commands, use /main-command sub-command
# - enable/disable tab completer for sub-commands
# 4.Placeholders:
# - {PLAYER} - player name who use command
# For other placeholders, use PlaceholderAPI plugin:
# - https://www.spigotmc.org/resources/placeholderapi.6245/
# 4.Hex colors:
# - To use HEX color, use HEXCODE (ex. DBC7FF)
# hex codes: https://htmlcolorcodes.com/
#---------------------------------------#
# [Config] #
#---------------------------------------#
blocked:
commands:
- 'pl'
- 'plugins'
- 'help'
- 'version'
- '?'
perm: 'bc.*' # <- permission to use blocked commands
message: '&cYou cannot use this command!' # <- default message when player don't have permission
commands:
core: # <- command name (without /)
perm: 'core.admin' # <- when player don't have permission, it will send message default message
actions:
action-1:
type: 'replace' # <- replace, message, broadcast
action:
- 'essentials' # <- command to replace, when player use /core, it will replace to /essentials
info:
perm: 'info.admin' # <- permission to use this command
perm-message: '&cYou cannot use this command!' # <- message when player don't have permission
completer: true
#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!'
diamonds:
actions:
action-1:
type: 'text'
action:
- 'DBC7FFDiamonds!'
action-2:
type: 'server_command' # <- execute command as console
action:
- 'give {PLAYER} minecraft:diamond 1' # (without /)
sop:
completer: true # <- enable tab completer
actions:
action-1:
type: 'text'
action:
- '&aUsage: /sop '
sub-commands: # <- sub-commands
op: # <- sub-command name, use /sop op
actions:
action-1:
type: 'server_command'
action:
- 'op {PLAYER}'
deop: # <- sub-command name, use /sop deop
actions:
action-1:
type: 'server_command'
action:
- 'deop {PLAYER}'
```
## Links
[](https://www.spigotmc.org/resources/%E2%9C%A8bettercommands%E2%9C%A8-easily-create-commands-%E2%9C%85.113189/)
[](https://builtbybit.com/resources/bettercommands-easily-create-commands.33345/)