Update for cloud deprecations

This commit is contained in:
Jason Penilla committed 2022-12-15 14:02:50 -07:00
1 parent 4a53bc85b5
commit 8ab0f9d782
17 files changed
+22 -22

No files matched your search

@@ -66,7 +66,7 @@ public final class CarbonChatFabricModule extends AbstractModule {
@Singleton
public CommandManager<Commander> commandManager() {
final FabricServerCommandManager<Commander> commandManager = new FabricServerCommandManager<>(
AsynchronousCommandExecutionCoordinator.<Commander>newBuilder().build(),
AsynchronousCommandExecutionCoordinator.<Commander>builder().build(),
FabricCommander::from,
commander -> ((FabricCommander) commander).commandSourceStack()
);
@@ -73,7 +73,7 @@ public class DeleteMessageCommand extends CarbonCommand {
@Override
public void init() {
final var command = this.commandManager.commandBuilder(this.commandSettings().name(), this.commandSettings().aliases())
.argument(UUIDArgument.<Commander>newBuilder("messageid").withSuggestionsProvider((sender, input) -> {
.argument(UUIDArgument.<Commander>builder("messageid").withSuggestionsProvider((sender, input) -> {
final List<String> messageIds = CarbonChatFabric.messageIdSuggestions();
if (input.isEmpty()) {