Package net.glowstone.command.minecraft
Class TpCommand
java.lang.Object
org.bukkit.command.Command
org.bukkit.command.defaults.VanillaCommand
net.glowstone.command.minecraft.GlowVanillaCommand
net.glowstone.command.minecraft.TpCommand
Differs from
TeleportCommand in that all relative coordinates are relative to the target
rather than the sender. /teleport and /tp were synonyms until Minecraft 1.10.-
Nested Class Summary
Nested classes/interfaces inherited from class net.glowstone.command.minecraft.GlowVanillaCommand
GlowVanillaCommand.CommandMessages, GlowVanillaCommand.GenericMessage -
Field Summary
Fields inherited from class net.glowstone.command.minecraft.GlowVanillaCommand
CACHE_SIZE, JOINERFields inherited from class org.bukkit.command.Command
description, timings, usageMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(org.bukkit.command.CommandSender sender, String label, String[] args, GlowVanillaCommand.CommandMessages commandMessages) Executes the command, returning its success.Methods inherited from class net.glowstone.command.minecraft.GlowVanillaCommand
execute, getBundle, getBundle, readResourceBundle, sendUsageMessage, testPermissionMethods inherited from class org.bukkit.command.defaults.VanillaCommand
getDouble, getDouble, getInteger, getRelativeDouble, matchesMethods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getTimingName, getUsage, isRegistered, permissionMessage, permissionMessage, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, tabComplete, testPermission, testPermissionSilent, toString, unregister
-
Constructor Details
-
TpCommand
public TpCommand()Creates the instance for this command.
-
-
Method Details
-
execute
public boolean execute(org.bukkit.command.CommandSender sender, String label, String[] args, GlowVanillaCommand.CommandMessages commandMessages) Description copied from class:GlowVanillaCommandExecutes the command, returning its success.- Specified by:
executein classGlowVanillaCommand- Parameters:
sender- Source object which is executing this commandlabel- The alias of the command usedargs- All arguments passed to the command, split via ' 'commandMessages- Object containing the title, description and permission message in the sender's locale, or set with setters- Returns:
- true if the command was successful, otherwise false
-