Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ public HomeCommand() {}
@Override
public int run(CommandContext<ServerCommandSource> context) throws CommandSyntaxException {
PlayerData senderPlayerData = ((ServerPlayerEntityAccess) context.getSource().getPlayerOrThrow()).ec$getPlayerData();
String homeName = StringArgumentType.getString(context, "home_name");
String homeName = context.getArguments().containsKey("home_name")
? StringArgumentType.getString(context, "home_name")
: "home";

return exec(senderPlayerData, homeName);
}
Expand Down