Delegate sponge and velocity player suggestions

This commit is contained in:
Draycia committed 2021-12-22 18:12:48 -08:00
1 parent 797fbc2176
commit b90a5e61db
2 files changed
+6

No files matched your search

@@ -22,6 +22,8 @@ package net.draycia.carbon.sponge;
import cloud.commandframework.CommandManager;
import cloud.commandframework.execution.AsynchronousCommandExecutionCoordinator;
import cloud.commandframework.sponge.SpongeCommandManager;
import cloud.commandframework.sponge.argument.SingleEntitySelectorArgument;
import cloud.commandframework.sponge.argument.SinglePlayerSelectorArgument;
import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import com.google.inject.Singleton;
@@ -87,6 +89,7 @@ public final class CarbonChatSpongeModule extends AbstractModule {
this.bind(Path.class).annotatedWith(ForCarbon.class).toInstance(this.configDir);
this.bind(CarbonChat.class).toInstance(this.carbonChat);
this.bind(CarbonServer.class).to(CarbonServerSponge.class);
this.bind(PlayerSuggestions.class).toInstance(new SinglePlayerSelectorArgument.Parser<Commander>()::suggestions);
}
}