Class VersionCommand
java.lang.Object
de.craftsblock.craftsnet.command.commands.VersionCommand
- All Implemented Interfaces:
CommandExecutor
Command executor for the version command.
This class implements the
CommandExecutor interface and provides functionality to handle the "version" command.- Since:
- 3.0.0-SNAPSHOT
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
VersionCommand
public VersionCommand()
-
-
Method Details
-
onCommand
public void onCommand(@NotNull @NotNull Command command, @NotNull @NotNull String alias, @NotNull @NotNull String[] args, @NotNull @NotNull Logger logger) Executes the version command. This method logs the current version of CraftsNet to the provided logger.- Specified by:
onCommandin interfaceCommandExecutor- Parameters:
command- The command that was executed.alias- The alias name of the command used to access it.args- The arguments passed with the command (not used in this implementation).logger- The logger used to log messages.
-