Class DebugCommand
java.lang.Object
fr.multimc.api.spigot.common.commands.executors.DebugCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
Class that implements the
CommandExecutor interface for the "debug" command.
Allows for teleporting a player to a specific location in the game world.-
Constructor Summary
ConstructorsConstructorDescriptionDebugCommand(GamesManager gamesManager) Constructor for the DebugCommand class. -
Method Summary
-
Constructor Details
-
DebugCommand
Constructor for the DebugCommand class.- Parameters:
gamesManager- TheGamesManagerinstance to be used for getting the game world.
-
-
Method Details
-
onCommand
public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender commandSender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String s, @NotNull @NotNull String[] strings) Executes the "debug" command when called.- Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor- Parameters:
commandSender- TheCommandSenderof the command.command- TheCommandbeing executed.s-Stringthat represents yhe name of the command being executed.strings-String[] that represents the additional arguments passed with the command.- Returns:
- boolean indicating if the command was successful or not.
-