use of me.botsko.prism.api.Result in project Prism-Bukkit by prism.
the class Prism method performLookup.
@Override
public Future<Result> performLookup(PrismParameters parameters, CommandSender sender) {
CompletableFuture<Result> resultCompletableFuture = new CompletableFuture<>();
Bukkit.getScheduler().runTaskAsynchronously(instance, () -> {
Result result = new ActionsQuery(Prism.getInstance()).lookup(parameters, sender);
resultCompletableFuture.complete(result);
});
return resultCompletableFuture;
}
Aggregations