Add VelocityCommandPreprocessor

This commit is contained in:
jmp 2020-10-20 16:16:09 -07:00 committed by Alexander Söderberg
parent ad3ca86f42
commit d86973f227
8 changed files with 94 additions and 92 deletions

View file

@ -82,7 +82,7 @@ public final class ExampleVelocityPlugin {
);
commandManager.command(
commandManager.commandBuilder("example")
.argument(PlayerArgument.of("player", this.server))
.argument(PlayerArgument.of("player"))
.handler(context -> {
final Player player = context.get("player");
context.getSender().sendMessage(
@ -98,7 +98,7 @@ public final class ExampleVelocityPlugin {
);
commandManager.command(
commandManager.commandBuilder("example-server")
.argument(ServerArgument.of("server", this.server))
.argument(ServerArgument.of("server"))
.handler(context -> {
final RegisteredServer server = context.get("server");
context.getSender().sendMessage(