Package de.eimmer.befehl.vorgaben
Class ZusatzmoduleBefehl
java.lang.Object
de.eimmer.befehl.Befehl
de.eimmer.befehl.vorgaben.EimerBefehl
de.eimmer.befehl.vorgaben.ZusatzmoduleBefehl
-
Field Summary
Fields inherited from class de.eimmer.befehl.Befehl
description, usageMessage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(BefehlAbsender sender, String currentAlias, String[] args) Executes the befehl, returning its successtabComplete
(BefehlAbsender sender, String alias, String[] args) Executed on tab completion for this befehl, returning a list of options the spieler can tab through.Methods inherited from class de.eimmer.befehl.Befehl
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
-
ZusatzmoduleBefehl
-
-
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 -
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 classBefehl
- Parameters:
sender
- Source object which is executing this befehlalias
- the alias being usedargs
- 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
-