Class FoundryPlayerCommand

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

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

    • FoundryPlayerCommand

      public FoundryPlayerCommand()
  • 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 player entity.
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
      Overrides:
      onCommand in class FoundryCommand
      Parameters:
      cs - Player - 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.