Class LabelNode

java.lang.Object
me.efekos.simpler.commands.node.CommandNode
me.efekos.simpler.commands.node.impl.LabelNode

public class LabelNode extends CommandNode
An example of custom CommandNode. A node that holds a simple label. CommandNode.addChild(String) generates a LabelNode.
  • Constructor Details

    • LabelNode

      public LabelNode(String label)
      Creates a new label node.
      Parameters:
      label - Main label that this node will hold.
  • Method Details

    • getLabel

      public String getLabel()
      Returns the label that this node is holding.
      Returns:
      Label of this node.
    • suggest

      public List<String> suggest(org.bukkit.command.CommandSender sender, List<String> args)
      Provides a list that can be added to the final list of tab completion.
      Specified by:
      suggest in class CommandNode
      Parameters:
      sender - Sender that needs a tab completion. Probably a Player since console doesn't need a tab completion.
      args - List of the other arguments given by the sender.
      Returns:
      A list for tab completion.