Custom Commands
This guide explains how to create, edit, and delete custom commands.
Overview
Custom commands can be added as either Player Commands or Admin Commands. These commands are stored dynamically and can be executed with specific permissions.
Command Types
- Player Command: Accessible by all players.
- Admin Command: Requires the user to have
admin
tags.
How to Manage Custom Commands
1. Accessing the Command Manager
Open the Admin Panel and find custom commands
2. Adding a New Command
- Open the Custom Commands Manager.
- Select Add New Command.
- Fill out the form:
- Command Name: The name of the command (without the
!
prefix). - Command Type: Choose between
Player Command
orAdmin Command
. - Description: Provide a brief description of the command.
- Command to Execute: Enter the exact command to be run.
- Command Name: The name of the command (without the
- Confirm your entries and save. The new command will be stored and ready to use.
3. Editing an Existing Command
- Open the Custom Commands Manager.
- Select the command you want to edit.
- Modify any field (name, type, description, or command).
- Save your changes.
4. Deleting a Command
- Open the Custom Commands Manager.
- Select the command you want to delete.
- Confirm the deletion.
Examples
Example 1: Adding a Player Command
- Name:
hello
- Type: Player Command
- Description: Sends a greeting to the player.
- Command to Execute:
say Hello, ${player.name}!
When a player types !hello
, the server will execute the command and send the greeting.
Example 2: Adding an Admin Command
- Name:
giveDiamonds
- Type: Admin Command
- Description: Gives 10 diamonds to the admin.
- Command to Execute:
give @s minecraft:diamond 10
Only admins can execute !giveDiamonds
.
Notes
- Validation: The system ensures all required fields are completed and that the command name is unique.
- Security: Admin commands are protected and cannot be accessed by regular players.
Start enhancing your server with custom commands today!