Command System - ZeroG-Network/NeoEssentials GitHub Wiki
The Command System in NeoEssentials provides a comprehensive framework for managing and executing commands on your Minecraft server.
NeoEssentials offers a robust command system that allows server administrators to:
- Execute essential server management operations
- Provide useful utilities for players
- Customize command behavior and permissions
- Create command aliases and shortcuts
- Integrate with other mod systems
NeoEssentials organizes commands into the following categories:
Category | Description | Example Commands |
---|---|---|
Administrative | Server management commands |
/ne reload , /ne debug
|
Economy | Money and transaction commands |
/money , /pay , /baltop
|
Teleportation | Movement and location commands |
/home , /warp , /spawn , /tpa
|
Player | Player-focused utility commands |
/nick , /msg , /help
|
World | World management commands |
/time , /weather , /gamemode
|
Utility | Miscellaneous helpful commands |
/afk , /hat , /ping
|
The NeoEssentials command system uses a hierarchical structure:
-
Base Commands: Root-level commands (e.g.,
/ne
,/money
) -
Subcommands: Commands under a base command (e.g.,
/ne reload
,/money pay
) -
Arguments: Parameters that modify command behavior (e.g.,
/warp create <name>
)
Server administrators can create custom commands through configuration:
{
"commands": {
"customcmd": {
"permission": "neoessentials.command.custom",
"aliases": ["cc", "customcommand"],
"action": "execute_commands",
"commands": [
"say Custom command executed!",
"give %player% minecraft:diamond 1"
]
}
}
}
You can configure global command settings in config/neoessentials/commands.json
:
{
"settings": {
"enable_command_cooldowns": true,
"default_cooldown": 3,
"enable_command_costs": false,
"command_prefix": "ne"
}
}
Individual commands can be configured with:
- Aliases: Alternative command names
- Permissions: Required permissions to use the command
- Cooldowns: Time between command uses
- Cost: Economy cost to use the command
- Description: Help text for the command
Developers can register custom commands using the API:
import com.zerog.neoessentials.api.command.CommandAPI;
public class MyMod {
public void registerCommands() {
CommandAPI.register("mycommand", new MyCustomCommand());
}
}
Issue | Solution |
---|---|
Command not found | Ensure the command is enabled in configuration |
Permission denied | Check player has the required permission |
Command cooldown | Wait for cooldown to expire |
Command cost error | Ensure player has sufficient balance |
- Commands Reference - Full list of all available commands
- Permissions Guide - Command permission setup
- API Documentation - Developing with the command API
For additional help with the command system, join our Discord server or check the GitHub repository.