-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Scope
Allow players to designate one of their homes as the "default" home, which is used when they type /home without specifying a home name. Currently /home without a name always teleports to the home named "home".
Implementation Details
- Add a per-player setting to store the default home name (persisted in player home data)
- When a player runs
/homewithout arguments:- Check if the player has a configured default home
- If yes, teleport to that home
- If no (or the default home was deleted), fall back to the home named "home"
- If neither exists, show an error message suggesting they set a default
- Add a way to set the default home:
- GUI: Add a "Set as Default" button on the Home Detail page (star icon or similar)
- Command:
/homes default <name>to set via command
- Visual indicator in the Homes List GUI showing which home is the default (e.g., star icon, gold highlight, or "[Default]" label)
- The default setting should survive home renames
Risks and Alternatives
- Risk: Migration concern — existing players expect
/hometo go to "home". The fallback to "home" named home preserves backward compatibility. - Risk: If the default home is deleted, need graceful fallback. Already handled by falling back to "home" named home.
- Alternative: Could use
/home 1(numeric index) instead of named defaults. Less intuitive. - Alternative: Could make
/homealways open the GUI instead. Different UX philosophy — some players prefer quick teleport.
References and Media
- Current
/homecommand implementation:HomeCommand.java - Home data model:
data/Home.java - Player homes storage:
storage/json/JsonHomeStorage.java
Confirmation
- I have searched existing issues to ensure this is not a duplicate
- I have considered the scope and impact of this feature
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request