Skip to content

Commit

Permalink
Fix commands on Spigot
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolai committed Apr 29, 2021
1 parent fdd5ce6 commit 90206c5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import broccolai.tickets.core.inject.platform.PluginPlatform;
import broccolai.tickets.core.utilities.ArrayHelper;
import cloud.commandframework.CommandManager;
import cloud.commandframework.bukkit.CloudBukkitCapabilities;
import cloud.commandframework.exceptions.InvalidCommandSenderException;
import cloud.commandframework.execution.AsynchronousCommandExecutionCoordinator;
import cloud.commandframework.minecraft.extras.MinecraftExceptionHandler;
Expand Down Expand Up @@ -98,7 +99,9 @@ private CommandManager<OnlineSoul> commandManager(
}
);

cloudManager.registerAsynchronousCompletions();
if (cloudManager.queryCapability(CloudBukkitCapabilities.ASYNCHRONOUS_COMPLETION)) {
cloudManager.registerAsynchronousCompletions();
}

new MinecraftExceptionHandler<@NonNull OnlineSoul>()
.withDefaultHandlers()
Expand Down

0 comments on commit 90206c5

Please sign in to comment.