mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-05 10:22:05 +01:00
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:
parent
9f93acee68
commit
d8812cd1ee
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user