Class TeleportCommand

java.lang.Object
net.lewmc.essence.commands.teleportation.tp.TeleportCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public class TeleportCommand extends Object implements org.bukkit.command.CommandExecutor
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for the TeleportCommand class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    console(org.bukkit.command.CommandSender commandSender)
    Checks if the command sender is the console.
    boolean
    onCommand(@NotNull org.bukkit.command.CommandSender commandSender, @NotNull org.bukkit.command.Command command, @NotNull String s, String[] args)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TeleportCommand

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

    • onCommand

      public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender commandSender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String s, String[] args)
      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?
    • console

      public boolean console(org.bukkit.command.CommandSender commandSender)
      Checks if the command sender is the console.
      Parameters:
      commandSender - CommandSender - The command sender.
      Returns:
      boolean - If the command sender is the console.