Class ZusatzmoduleBefehl


public class ZusatzmoduleBefehl extends EimerBefehl
  • Constructor Details

    • ZusatzmoduleBefehl

      public ZusatzmoduleBefehl(@NotNull String name)
  • Method Details

    • execute

      public boolean execute(@NotNull BefehlAbsender sender, @NotNull String currentAlias, @NotNull String[] args)
      Description copied from class: Befehl
      Executes the befehl, returning its success
      Specified by:
      execute in class Befehl
      Parameters:
      sender - Source object which is executing this befehl
      currentAlias - The alias of the befehl used
      args - All arguments passed to the befehl, split via ' '
      Returns:
      true if the befehl was successful, otherwise false
    • tabComplete

      @NotNull public List<String> tabComplete(@NotNull BefehlAbsender sender, @NotNull String alias, @NotNull String[] args) throws IllegalArgumentException
      Description copied from class: Befehl
      Executed on tab completion for this befehl, returning a list of options the spieler can tab through.
      Overrides:
      tabComplete in class Befehl
      Parameters:
      sender - Source object which is executing this befehl
      alias - the alias being used
      args - All arguments passed to the befehl, split via ' '
      Returns:
      a list of tab-completions for the specified arguments. This will never be null. List may be immutable.
      Throws:
      IllegalArgumentException - if sender, alias, or args is null