.
This commit is contained in:
parent
a088d27485
commit
46978ae799
18 changed files with 2233 additions and 112 deletions
|
|
@ -38,7 +38,7 @@ class KeyLiteral {
|
|||
var actionLiteralBuilder = Literal.<Player>builder(action.name());
|
||||
for (var argument : action.arguments())
|
||||
actionLiteralBuilder.withArgument(argument);
|
||||
actionLiteralBuilder.withSyncExecutor((style, ctx) -> {
|
||||
actionLiteralBuilder.withSyncExecutor(ctx -> {
|
||||
if (action.requiresValue() && node.value() == null) {
|
||||
ctx.sender().sendMessage(style.err("No value set."));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue