java.lang.Object
me.hsgamer.hscore.bukkit.command.sub.SubCommand
io.github.projectunified.unihologram.spigot.test.command.subcommand.HologramCommand
Direct Known Subclasses:
AddLineCommand, CountLineCommand, DeleteCommand, DeleteLineCommand, DisplayHologramCommand, InsertLineCommand, MoveCommand, SetLineCommand

public abstract class HologramCommand extends me.hsgamer.hscore.bukkit.command.sub.SubCommand
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final UniHologramTest
     

    Fields inherited from class me.hsgamer.hscore.bukkit.command.sub.SubCommand

    consoleAllowed, description, name, noPermissionMessageSender, permission, playerOnlyMessageSender, usage, usageSender
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    HologramCommand(UniHologramTest plugin, @NotNull String name, @NotNull String description, @NotNull String argsUsage, boolean consoleAllowed)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract int
     
    boolean
    isProperUsage(@NotNull org.bukkit.command.CommandSender sender, @NotNull String label, @NotNull String... args)
     
    protected abstract void
    onHologramCommand(org.bukkit.command.CommandSender sender, Hologram<org.bukkit.Location> hologram, String[] args)
     
    void
    onSubCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull String label, @NotNull String... args)
     
    toLine(String string)
     

    Methods inherited from class me.hsgamer.hscore.bukkit.command.sub.SubCommand

    getDescription, getName, getPermission, getUsage, isConsoleAllowed, isExecutable, onCommand, onTabComplete, setConsoleAllowed, setDescription, setPermission, setPermission, setUsage

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • HologramCommand

      protected HologramCommand(UniHologramTest plugin, @NotNull @NotNull String name, @NotNull @NotNull String description, @NotNull @NotNull String argsUsage, boolean consoleAllowed)
  • Method Details

    • toLine

      public static HologramLine toLine(String string)
    • onHologramCommand

      protected abstract void onHologramCommand(org.bukkit.command.CommandSender sender, Hologram<org.bukkit.Location> hologram, String[] args)
    • getMinimumArgumentLength

      protected abstract int getMinimumArgumentLength()
    • isProperUsage

      public boolean isProperUsage(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String label, @NotNull @NotNull String... args)
      Overrides:
      isProperUsage in class me.hsgamer.hscore.bukkit.command.sub.SubCommand
    • onSubCommand

      public void onSubCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String label, @NotNull @NotNull String... args)
      Specified by:
      onSubCommand in class me.hsgamer.hscore.bukkit.command.sub.SubCommand