Tweak ListUsersGUI.

- Complete and Reset challenges will be opened until pressed back button.
- Fix issue when confirm reset never closes.
This commit is contained in:
BONNe 2019-01-28 01:19:40 +02:00
parent 9f93acee68
commit d8812cd1ee

View File

@ -184,8 +184,10 @@ public class ListUsersGUI extends CommonGUI
{ {
manager.setChallengeComplete(User.getInstance(player), value); manager.setChallengeComplete(User.getInstance(player), value);
} }
else
this.build(); {
this.build();
}
}); });
break; break;
case RESET: case RESET:
@ -194,8 +196,10 @@ public class ListUsersGUI extends CommonGUI
{ {
manager.resetChallenge(User.getInstance(player), value); manager.resetChallenge(User.getInstance(player), value);
} }
else
this.build(); {
this.build();
}
}); });
break; break;
case RESET_ALL: case RESET_ALL:
@ -204,6 +208,8 @@ public class ListUsersGUI extends CommonGUI
{ {
manager.resetAllChallenges(this.user, this.world); manager.resetAllChallenges(this.user, this.world);
} }
this.build();
}); });
break; break;
} }