Skip to content

Commit

Permalink
/home now teleports you to your bed with no args
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed Jun 7, 2021
1 parent 50982b7 commit 6da02b9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
} else {
CustomMessages.sendMessage(sender, "Error.noAccessHome", "{home}", home.getName());
}

} else if (NewConfig.get().ADD_BED_TO_HOMES.get()) {
Home home = atPlayer.getBedSpawn();
if (home == null) {
CustomMessages.sendMessage(sender, "Error.noHomeInput");
return true;
}
teleport(player, home);
} else {
CustomMessages.sendMessage(sender, "Error.noHomeInput");
}
Expand Down

0 comments on commit 6da02b9

Please sign in to comment.