.
This commit is contained in:
parent
35a0784e40
commit
0cf84f5419
19 changed files with 66 additions and 47 deletions
|
|
@ -4,6 +4,7 @@ import de.kentoj.scrow.bukkit.command.ScrowBukkitCC;
|
|||
import de.kentoj.scrowlib.convention.ScrowMessageStyle;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import site.lab0x13.scrow.commands.model.literal.Literal;
|
||||
import site.lab0x13.scrow.commands.model.literal.LiteralMeta;
|
||||
import site.lab0x13.scrow.configurator.ConfigApi;
|
||||
import site.lab0x13.scrow.configurator.action.ConfigAction;
|
||||
import site.lab0x13.scrow.configurator.node.ConfigNode;
|
||||
|
|
@ -18,7 +19,7 @@ class KeyLiteral {
|
|||
KeyLiteral(ConfigApi api) {
|
||||
this.api = api;
|
||||
literal = Literal.<ScrowBukkitCC>dynamic("key")
|
||||
.withSubLiteralNames(() -> new ArrayList<>(api.allNodes().keySet()))
|
||||
.withSubLiteralMetas(() -> api.allNodes().keySet().stream().map(LiteralMeta::of).toList())
|
||||
.withSubLiteralProvider(this::keyLiteral)
|
||||
.build();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue