Class DebugCommand

java.lang.Object
io.github.monsieurdoceo.filizer.commands.DebugCommand
All Implemented Interfaces:
io.papermc.paper.command.brigadier.BasicCommand, org.bukkit.command.CommandExecutor

public class DebugCommand extends Object implements io.papermc.paper.command.brigadier.BasicCommand, org.bukkit.command.CommandExecutor
Provides a development command for inspecting managed files.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new DebugCommand instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(io.papermc.paper.command.brigadier.CommandSourceStack source, String[] args)
    Executes the command.
    boolean
    onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
    Called when a command is executed

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.papermc.paper.command.brigadier.BasicCommand

    canUse, permission, suggest
  • Constructor Details

    • DebugCommand

      public DebugCommand(FileManager fileManager)
      Creates a new DebugCommand instance.
      Parameters:
      fileManager - The file manager to use
  • Method Details

    • execute

      public void execute(io.papermc.paper.command.brigadier.CommandSourceStack source, String[] args)
      Executes the command.
      Specified by:
      execute in interface io.papermc.paper.command.brigadier.BasicCommand
      Parameters:
      source - the source of the command
      args - the arguments of the command ignoring repeated spaces
    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
      Called when a command is executed
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
      Parameters:
      sender - Source of the command
      command - Command that was executed
      label - Alias of the command that was used
      args - Passed command arguments
      Returns:
      true if a valid command, otherwise false