diff --git a/randomteleport-plugin/src/main/java/de/themoep/randomteleport/api/RandomTeleportAPI.java b/randomteleport-plugin/src/main/java/de/themoep/randomteleport/api/RandomTeleportAPI.java index 93a5728..dcd18d3 100644 --- a/randomteleport-plugin/src/main/java/de/themoep/randomteleport/api/RandomTeleportAPI.java +++ b/randomteleport-plugin/src/main/java/de/themoep/randomteleport/api/RandomTeleportAPI.java @@ -49,7 +49,7 @@ public interface RandomTeleportAPI { * @param validators additional LocationValidators to customize validity check of a location * @return a CompletableFuture true if teleport was successful else false */ - CompletableFuture teleportToRandomLocation(Player player, Location center, int minRange, int maxRange, LocationValidator... validators) throws ExecutionException, InterruptedException; + CompletableFuture teleportToRandomLocation(Player player, Location center, int minRange, int maxRange, LocationValidator... validators); /** * Creates a RandomSearcher instance with the passed parameters @@ -60,8 +60,6 @@ public interface RandomTeleportAPI { * @param maxRange the maximum distance a found location has to the center location * @param validators additional LocationValidators to customize validity check of a location * @return a randomSearcher instance - * @throws ExecutionException see {@link CompletableFuture#get()} - * @throws InterruptedException see {@link CompletableFuture#get()} */ - RandomSearcher getRandomSearcher(Player player, Location center, int minRange, int maxRange, LocationValidator... validators) throws ExecutionException, InterruptedException; + RandomSearcher getRandomSearcher(Player player, Location center, int minRange, int maxRange, LocationValidator... validators); }