java.lang.Object
me.github.simonplays15.betterbansystem.core.command.BaseCommand
me.github.simonplays15.betterbansystem.core.command.commands.BanCommand

public class BanCommand extends BaseCommand
The BanCommand class represents a command for banning a player in the system. It extends the BaseCommand class.
  • Constructor Details

    • BanCommand

      public BanCommand()
      Instantiates a new Ban command
  • Method Details

    • runCommand

      public boolean runCommand (BaseCommandSender sender, String @NotNull [] args) throws CommandException
      Description copied from class: BaseCommand
      Executes the command.
      Specified by:
      runCommand in class BaseCommand
      Parameters:
      sender - The command sender.
      args - The command arguments.
      Returns:
      true if the command executed successfully, false otherwise.
      Throws:
      CommandException - if a command encounters an error or exception.