Skip to content

Commit 568e283

Browse files
authored
feat(paper): Use the KeyedWorldParser instead of the legacy WorldParser by default in the modern PaperCommandManager (#77)
1 parent 45adac0 commit 568e283

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cloud-paper/src/main/java/org/incendo/cloud/paper/PaperCommandManager.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
import org.incendo.cloud.execution.ExecutionCoordinator;
5050
import org.incendo.cloud.internal.CommandRegistrationHandler;
5151

52+
import static org.incendo.cloud.paper.parser.KeyedWorldParser.keyedWorldParser;
53+
5254
/**
5355
* A {@link CommandManager} implementation for modern Paper API, using {@link CommandSourceStack} as the base sender type.
5456
*
@@ -124,6 +126,10 @@ private PaperCommandManager(
124126
return commandSourceStack.getSender();
125127
}
126128
));
129+
130+
// Use KeyedWorldParser instead of WorldParser by default
131+
this.parserRegistry()
132+
.registerParser(keyedWorldParser());
127133
}
128134

129135
@Override

0 commit comments

Comments
 (0)