mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-24 11:36:53 +01:00
Implement ResetAllChallenges confirmation GUI to ListUsersGUI.
This commit is contained in:
parent
0f56eb7185
commit
870bf6d232
@ -539,4 +539,9 @@ public class ChallengesManager {
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void resetAllChallenges(User uuid, World world)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ import world.bentobox.bentobox.api.panels.builders.PanelItemBuilder;
|
||||
import world.bentobox.bentobox.api.user.User;
|
||||
import world.bentobox.challenges.ChallengesAddon;
|
||||
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.
|
||||
break;
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user