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

    Constructors
    Constructor
    Description
    BukkitWrap(one.tranic.t.base.command.simple.SimpleCommand<? extends BukkitSource> command)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    execute(@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 BukkitWrap
    wrap(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

    Methods inherited from class java.lang.Object

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

    • BukkitWrap

      public BukkitWrap(one.tranic.t.base.command.simple.SimpleCommand<? extends BukkitSource> command)
  • 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:
      execute in class org.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:
      tabComplete in class org.bukkit.command.Command