mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
setowner should allow null UUIDs
This commit is contained in:
parent
b0d55d434d
commit
5d4cf3b705
@ -146,15 +146,7 @@ public class Owner extends SetCommand {
|
|||||||
} catch (Exception ignored) {
|
} catch (Exception ignored) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
PlotSquared.get().getImpromptuUUIDPipeline().getSingle(value, (uuid, throwable) -> {
|
PlotSquared.get().getImpromptuUUIDPipeline().getSingle(value, (uuid, throwable) -> uuidConsumer.accept(uuid));
|
||||||
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);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user