Skip to content

Commit

Permalink
feat(paper): Use the KeyedWorldParser instead of the legacy WorldPars…
Browse files Browse the repository at this point in the history
…er by default in the modern PaperCommandManager (#77)
  • Loading branch information
jpenilla authored Jun 21, 2024
1 parent 45adac0 commit 568e283
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
import org.incendo.cloud.execution.ExecutionCoordinator;
import org.incendo.cloud.internal.CommandRegistrationHandler;

import static org.incendo.cloud.paper.parser.KeyedWorldParser.keyedWorldParser;

/**
* A {@link CommandManager} implementation for modern Paper API, using {@link CommandSourceStack} as the base sender type.
*
Expand Down Expand Up @@ -124,6 +126,10 @@ private PaperCommandManager(
return commandSourceStack.getSender();
}
));

// Use KeyedWorldParser instead of WorldParser by default
this.parserRegistry()
.registerParser(keyedWorldParser());
}

@Override
Expand Down

0 comments on commit 568e283

Please sign in to comment.