don't use async suggestions with brigadier

This commit is contained in:
Alexander Söderberg 2024-01-02 12:08:36 +01:00
parent 1a277bbbeb
commit 3a1b373c8e
No known key found for this signature in database

View File

@ -73,11 +73,11 @@ public class CloudModule extends AbstractModule {
new BukkitSenderMapper()
);
commandManager.captionRegistry().registerProvider(new PlotSquaredCaptionProvider());
if (commandManager.hasCapability(CloudBukkitCapabilities.ASYNCHRONOUS_COMPLETION)) {
commandManager.registerAsynchronousCompletions();
}
if (commandManager.hasCapability(CloudBukkitCapabilities.NATIVE_BRIGADIER)) {
commandManager.registerBrigadier();
} else if (commandManager.hasCapability(CloudBukkitCapabilities.ASYNCHRONOUS_COMPLETION)) {
commandManager.registerAsynchronousCompletions();
}
final CommandRequirementPostprocessor requirementPostprocessor = new CommandRequirementPostprocessor();