Skip to content

Create AbandonConfirmMenu.java and default item for plot-abandon to TNT#213

Open
Cinnazeyy wants to merge 2 commits intomainfrom
update/abandon-confirmation
Open

Create AbandonConfirmMenu.java and default item for plot-abandon to TNT#213
Cinnazeyy wants to merge 2 commits intomainfrom
update/abandon-confirmation

Conversation

@Cinnazeyy
Copy link
Copy Markdown
Member

This PR changes the behaviour of clicking on the abandon item in the PlotActionsMenu.
Now the button opens up a new confirmation menu where only after clicking on the abandon item again, will the plot be actually abandoned.
This is to prevent trigger happy users accidentally nuking their progress.
Additionally, this PR also changes the default item for the abandon item to TNT. Previously it was a barrier block.

abandon

Copy link
Copy Markdown
Member

@Zoriot Zoriot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the design, I also see it would make sense to have a separate "back" and "cancel" button, might be too much also.
Might make sense to ask Malte - because he often mass delete plot where this is a extra click (where you also have to readjust the mouse). If he wishes also a direct way we could add a permission for that.

Please fix the translation issue - the other stuff i mentioned are your own decision. Other than that LGTM - ty for implementing it

private final Plot plot;

public AbandonConfirmMenu(Player player, Plot plot) {
super(3, "Abandon plot #" + plot.getId() + "?", player);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make that translatable!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants