Class BanCommand
java.lang.Object
me.github.simonplays15.betterbansystem.core.command.BaseCommand
me.github.simonplays15.betterbansystem.core.command.commands.BanCommand
The BanCommand class represents a command for banning a player in the system.
It extends the BaseCommand class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
runCommand
(BaseCommandSender sender, String @NotNull [] args) Executes the command.Methods inherited from class me.github.simonplays15.betterbansystem.core.command.BaseCommand
equals, getAliases, getCommandName, getDescription, getPermission, getPermManager, getUsage, hashCode, onTabComplete, sendUsage, setCommandName, setDescription, setLabel, setPermission, setUsage, testPermission, testPermission, toString
-
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 classBaseCommand
- 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.
-