Class CommandTeleport
java.lang.Object
net.lewmc.foundry.command.FoundryCommand
net.lewmc.essence.teleportation.tp.CommandTeleport
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
public class CommandTeleport
extends net.lewmc.foundry.command.FoundryCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
console
(org.bukkit.command.CommandSender commandSender) Checks if the command sender is the console.protected boolean
onRun
(org.bukkit.command.CommandSender cs, org.bukkit.command.Command command, String s, String[] args) protected String
The required permission.Methods inherited from class net.lewmc.foundry.command.FoundryCommand
hasPermission, onCommand
-
Constructor Details
-
CommandTeleport
Constructor for the TeleportCommand class.- Parameters:
plugin
- References to the main plugin class.
-
-
Method Details
-
requiredPermission
The required permission.- Specified by:
requiredPermission
in classnet.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) - Specified by:
onRun
in classnet.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?
-
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.
-