Class FoundryConsoleCommand

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

public abstract class FoundryConsoleCommand extends FoundryCommand
A command that can only be executed by the console.
  • Constructor Details

    • FoundryConsoleCommand

      public FoundryConsoleCommand()
  • Method Details

    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender cs, org.bukkit.command.Command command, String label, String[] args)
      Runs the command with a check to ensure that the executor is a console entity.
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
      Overrides:
      onCommand in class FoundryCommand
      Parameters:
      cs - CommandSender - The sender of the command.
      command - Command - The command.
      label - String - Label for the command.
      args - String[] - Arguments passed to the command.
      Returns:
      boolean - If the command was successful.