Class CommandClear

java.lang.Object
net.lewmc.foundry.command.FoundryCommand
net.lewmc.essence.inventory.CommandClear
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public class CommandClear extends net.lewmc.foundry.command.FoundryCommand
/clear command.
  • Constructor Details

    • CommandClear

      public CommandClear(Essence plugin)
      Constructor for the CommandClear class.
      Parameters:
      plugin - References to the main plugin class
  • Method Details

    • requiredPermission

      protected String requiredPermission()
      The required permission
      Specified by:
      requiredPermission in class net.lewmc.foundry.command.FoundryCommand
      Returns:
      String - the permission string
    • onRun

      protected boolean onRun(org.bukkit.command.CommandSender cs, org.bukkit.command.Command command, String s, String[] args)
      /clear command handler.
      Specified by:
      onRun in class net.lewmc.foundry.command.FoundryCommand
      Parameters:
      cs - Information about who sent the command - player or console.
      command - Information about what command was sent.
      s - Command label - not used here.
      args - The command's arguments.
      Returns:
      boolean true/false - was the command accepted and processed or not?