mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 06:28:54 +00:00
Delegate sponge and velocity player suggestions
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user