mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-24 00:01:41 +01:00
Fix further AME(s) in /home (#3444)
This commit is contained in:
parent
024c56efdd
commit
65f88834ba
@ -62,6 +62,9 @@ public class Commandhome extends EssentialsCommand {
|
||||
}
|
||||
goHome(user, player, homeName.toLowerCase(Locale.ENGLISH), charge, getNewExceptionFuture(user.getSource(), commandLabel));
|
||||
} catch (NotEnoughArgumentsException e) {
|
||||
if (!player.getBase().isOnline() || player.getBase() instanceof OfflinePlayer) {
|
||||
throw new Exception(tl("bedOffline"));
|
||||
}
|
||||
final User finalPlayer = player;
|
||||
PaperLib.getBedSpawnLocationAsync(player.getBase(), true).thenAccept(bed -> {
|
||||
final List<String> homes = finalPlayer.getHomes();
|
||||
|
Loading…
Reference in New Issue
Block a user