This commit is contained in:
kento2 2026-05-30 23:05:09 +02:00
parent b4c1e242c8
commit 35709b702d
7 changed files with 26 additions and 29 deletions

View file

@ -34,6 +34,11 @@ public class Main {
public void sendErrorMessage(PrintStream printStream, CommandException ex) {
System.err.println(ex.getMessage());
}
@Override
public boolean hasPermission(PrintStream printStream, String permission) {
return true;
}
};
var root = api.createNode("coins");

View file

@ -0,0 +1,20 @@
package de.kentoj.kencommandapi.api.structure.argument.types;
import de.kentoj.kencommandapi.api.processing.CommandContext;
import de.kentoj.kencommandapi.api.structure.argument.ArgumentType;
import de.kentoj.kencommandapi.api.structure.argument.SuggestionProvider;
import de.kentoj.kencommandapi.api.structure.argument.suggestion.NoSuggestionProvider;
import lombok.Getter;
public class StringArgumentType<T, S extends CommandContext<T, ?>> implements ArgumentType<T, S, String> {
@Override
public String parseInput(String string) {
return string;
}
@Override
public SuggestionProvider<T, S> defaultSuggestionProvider() {
return new NoSuggestionProvider<>();
}
}

View file

@ -21,8 +21,4 @@ public class TabCompleter<T, S extends CommandContext<T, ?>> {
return node.getLiterals().stream().map(CommandNode::getNames).flatMap(Arrays::stream).toList();
}
private List<String> getLastNode(CommandNode<T, S> node, String[] args) {
if (node.get)
}
}