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