Class ConnectionTestCommand
java.lang.Object
org.geysermc.geyser.command.GeyserCommand
org.geysermc.geyser.command.defaults.ConnectionTestCommand
- All Implemented Interfaces:
org.geysermc.geyser.api.command.Command
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.geysermc.geyser.api.command.Command
org.geysermc.geyser.api.command.Command.Builder<T extends org.geysermc.geyser.api.command.CommandSource> -
Field Summary
FieldsFields inherited from class org.geysermc.geyser.command.GeyserCommand
aliases, DEFAULT_ROOT_COMMAND -
Constructor Summary
ConstructorsConstructorDescriptionConnectionTestCommand(GeyserImpl geyser, String name, String description, String permission) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.incendo.cloud.context.CommandContext<GeyserCommandSource> context) Executes this commandvoidregister(org.incendo.cloud.CommandManager<GeyserCommandSource> manager) Registers this command to the given command manager.Methods inherited from class org.geysermc.geyser.command.GeyserCommand
aliases, baseBuilder, commandPermission, description, isBedrockOnly, isPlayerOnly, meta, name, permission, permissionDefault, rootCommandMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.api.command.Command
isExecutableOnConsole, isSuggestedOpOnly, subCommands
-
Field Details
-
CONNECTION_TEST_MOTD
-
-
Constructor Details
-
ConnectionTestCommand
-
-
Method Details
-
register
Description copied from class:GeyserCommandRegisters this command to the given command manager. This method may be overridden to register more than one command.The default implementation is that
GeyserCommand.baseBuilder(CommandManager)withGeyserCommand.execute(CommandContext)applied as the handler is registered to the manager.- Overrides:
registerin classGeyserCommand
-
execute
Description copied from class:GeyserCommandExecutes this command- Specified by:
executein classGeyserCommand- Parameters:
context- the context with which this command should be executed
-