Package one.tranic.t.bukkit.command.warp
Class BukkitWrap
java.lang.Object
org.bukkit.command.Command
one.tranic.t.bukkit.command.warp.BukkitWrap
public class BukkitWrap
extends org.bukkit.command.Command
A wrapper class that adapts a
SimpleCommand
for use in the Bukkit command system.
This class integrates commands defined in the
SimpleCommand structure, making them function
within the Bukkit platform by implementing the Command interface.
The class uses a BukkitSource to represent and execute commands with the
associated CommandSender.
-
Field Summary
Fields inherited from class org.bukkit.command.Command
description, timings, usageMessage -
Constructor Summary
ConstructorsConstructorDescriptionBukkitWrap(one.tranic.t.base.command.simple.SimpleCommand<? extends BukkitSource> command) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(@NotNull org.bukkit.command.CommandSender sender, @NotNull String commandLabel, @NotNull String[] args) tabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull String alias, @NotNull String[] args) static BukkitWrapwrap(one.tranic.t.base.command.simple.SimpleCommand<? extends BukkitSource> command) Methods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister
-
Constructor Details
-
BukkitWrap
-
-
Method Details
-
wrap
public static BukkitWrap wrap(one.tranic.t.base.command.simple.SimpleCommand<? extends BukkitSource> command) -
execute
public boolean execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String commandLabel, @NotNull @NotNull String[] args) - Specified by:
executein classorg.bukkit.command.Command
-
tabComplete
@NotNull public List<String> tabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String alias, @NotNull @NotNull String[] args) - Overrides:
tabCompletein classorg.bukkit.command.Command
-