From 5d4cf3b705287bb99d4c1125afebc7ff5d0faa72 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 10 Nov 2020 17:24:37 +0000 Subject: [PATCH] setowner should allow null UUIDs --- .../main/java/com/plotsquared/core/command/Owner.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Owner.java b/Core/src/main/java/com/plotsquared/core/command/Owner.java index f19790dc5..42e2df5e8 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Owner.java +++ b/Core/src/main/java/com/plotsquared/core/command/Owner.java @@ -146,15 +146,7 @@ public class Owner extends SetCommand { } catch (Exception ignored) { } } else { - PlotSquared.get().getImpromptuUUIDPipeline().getSingle(value, (uuid, throwable) -> { - if (throwable instanceof TimeoutException) { - MainUtil.sendMessage(player, Captions.FETCHING_PLAYERS_TIMEOUT); - } else if (throwable != null) { - MainUtil.sendMessage(player, Captions.INVALID_PLAYER, value); - } else { - uuidConsumer.accept(uuid); - } - }); + PlotSquared.get().getImpromptuUUIDPipeline().getSingle(value, (uuid, throwable) -> uuidConsumer.accept(uuid)); } return true; }