CoreCommand

class CoreCommand(plugin: CorePlugin) : CommandExecutor, TabCompleter

CoreCommand is the main command handler for the Minecraft MMO Core plugin.

This class handles all subcommands under the /core command and provides comprehensive functionality for plugin management, information display, and system testing.

Supported Subcommands:

  • info - Displays detailed plugin and server information

  • reload - Reloads the plugin configuration (requires permission)

  • testplugin - Runs comprehensive system diagnostics (requires permission, player-only)

Key Features:

  • Permission-based access control for sensitive operations

  • Rich text formatting using Adventure API components

  • Comprehensive system testing and diagnostics

  • Tab completion for improved user experience

  • Detailed error handling and logging

Permissions Required:

  • mcmmo.core.reload - Required for the reload subcommand

  • mcmmo.core.testplugin - Required for the test diagnostics subcommand

Author

Your Team Name

Since

1.0.0

Parameters

plugin

The main CorePlugin instance that this command handler belongs to

See also

CommandExecutor
TabCompleter

Constructors

Link copied to clipboard
constructor(plugin: CorePlugin)

Types

Link copied to clipboard
object Companion

Companion object for CoreCommand class.

Functions

Link copied to clipboard
open override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<out String>): Boolean

Main command execution handler for the /core command.

Link copied to clipboard
open override fun onTabComplete(sender: CommandSender, command: Command, alias: String, args: Array<out String>): List<String>?

Provides tab completion suggestions for the /core command.