Class McpCommand
java.lang.Object
eu.mrapik.minecraftservermcp.command.McpCommand
- All Implemented Interfaces:
CommandExecutor,TabCompleter
In-game admin command: reload
config.yml without restarting the server or dropping MCP tools.
MinecraftServerMcp.reloadConfiguration() replaces the live PluginSettings
snapshot used by ToolInvocationGate; tool registrations (built-in and
third-party) stay on the MCP server. HTTP listen address, port, servlet path, and TLS connectors are fixed at startup—
changing those still requires a full server/plugin restart.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPermission required for "reload".static final StringSubcommand name forMinecraftServerMcp.reloadConfiguration(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String alias, @NotNull String[] args)
-
Field Details
-
RELOAD_COMMAND
Subcommand name forMinecraftServerMcp.reloadConfiguration().- See Also:
-
PERMISSION_RELOAD
Permission required for "reload".- See Also:
-
-
Constructor Details
-
McpCommand
public McpCommand()
-
-
Method Details
-
onCommand
public boolean onCommand(@NotNull @NotNull CommandSender sender, @NotNull @NotNull Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) - Specified by:
onCommandin interfaceCommandExecutor
-
onTabComplete
public @NonNull List<String> onTabComplete(@NotNull @NotNull CommandSender sender, @NotNull @NotNull Command command, @NotNull @NotNull String alias, @NotNull @NotNull String[] args) - Specified by:
onTabCompletein interfaceTabCompleter
-