Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The button "Set home position" should prompt for a confirmation before actually changing home's coordinates #254

Open
rodrigomorales1 opened this issue Nov 15, 2024 · 0 comments

Comments

@rodrigomorales1
Copy link

rodrigomorales1 commented Nov 15, 2024

Currently, the button "Set home position" doesn't prompt for a confirmation, so if the player accidentally presses the button, the player loses the ability to teleport back home. Losing this ability can be bothersome for some players because their home can be thousands of blocks away from the spawn, so if the player doesn't have other means to teleport, the only way (s)he could go back is by travelling those thousands blocks by foot

I feel it would be great if users could configure this mod by making it possible to show a confirmation prompt whenever the button "Set home position" is pressed. The confirmation prompt could read "Are you sure that you want to change your home's coordinates?" and the buttons "Yes" and "Cancel" would be shown. This confirmation prompt could be enabled by setting a boolean variable that world administrators could set in the world's settings, the variable could be called show_confirmation_prompt_before_home_gui_set (because the current behavior is not to show a confirmation prompt, the default value of this variable should be "False" in order not to disrupt current users of this mod)

For reference, here's the definition of the button "Set home position":

ui.register_button("home_gui_set", {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants