Class KryptoniteCommand

java.lang.Object
net.lewmc.kryptonite.commands.KryptoniteCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public class KryptoniteCommand extends Object implements org.bukkit.command.CommandExecutor
  • Constructor Details

    • KryptoniteCommand

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

    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] args)
      /kryptonite command handler.
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
      Parameters:
      commandSender - 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?