Implement ResetAllChallenges confirmation GUI to ListUsersGUI.

This commit is contained in:
BONNe 2019-01-18 19:13:39 +02:00
parent 0f56eb7185
commit 870bf6d232
2 changed files with 12 additions and 1 deletions

View File

@ -539,4 +539,9 @@ public class ChallengesManager {
{ {
} }
public void resetAllChallenges(User uuid, World world)
{
}
} }

View File

@ -15,6 +15,7 @@ import world.bentobox.bentobox.api.panels.builders.PanelItemBuilder;
import world.bentobox.bentobox.api.user.User; import world.bentobox.bentobox.api.user.User;
import world.bentobox.challenges.ChallengesAddon; import world.bentobox.challenges.ChallengesAddon;
import world.bentobox.challenges.panel.CommonGUI; import world.bentobox.challenges.panel.CommonGUI;
import world.bentobox.challenges.panel.util.ConfirmationGUI;
/** /**
@ -175,7 +176,12 @@ public class ListUsersGUI extends CommonGUI
// TODO: Open Reset Challenge GUI. // TODO: Open Reset Challenge GUI.
break; break;
case RESET_ALL: case RESET_ALL:
// TODO: Confirmation GUI for resetting all challenges. new ConfirmationGUI(this.user, status -> {
if (status)
{
this.addon.getChallengesManager().resetAllChallenges(this.user, this.world);
}
});
break; break;
} }