API reference / dev.zernyth.api.command
TypedCommand
public final class TypedCommand
Immutable command tree; native registration/ownership remain in Server. All dispatch and suggestion calls require the live server-thread sender. Suggestions are local calculations, not native client tab-completion.
Members
public TypedCommand(String name, String description, String permission, boolean playerOnly, List<String> aliases, List<Argument<?>> arguments, List<TypedCommand> children, Predicate<Context> handler)public Command register(Server server)public boolean execute(CommandSender sender, List<String> args)public List<String> suggest(CommandSender sender, List<String> tokens)