mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-22 18:46:39 +01:00
Updated to use new Panel API
This commit is contained in:
parent
c1517d38b9
commit
f70195f3a0
@ -92,7 +92,7 @@ public class ChallengesPanels {
|
||||
.name(challenge.getFriendlyName().isEmpty() ? challenge.getUniqueId() : challenge.getFriendlyName())
|
||||
.description(challengeDescription(challenge, user))
|
||||
.glow(completed)
|
||||
.clickHandler((player,c) -> {
|
||||
.clickHandler((panel, player, c, s) -> {
|
||||
if (!challenge.getChallengeType().equals(ChallengeType.ICON)) {
|
||||
new TryToComplete(addon, player, manager, challenge);
|
||||
}
|
||||
@ -130,7 +130,7 @@ public class ChallengesPanels {
|
||||
.icon(new ItemStack(Material.BOOK_AND_QUILL))
|
||||
.name(name)
|
||||
.description(manager.stringSplit(user.getTranslation("challenges.navigation","[level]",name)))
|
||||
.clickHandler((u, c) -> {
|
||||
.clickHandler((p, u, c, s) -> {
|
||||
u.closeInventory();
|
||||
u.performCommand(ChallengesCommand.CHALLENGE_COMMAND + " " + status.getLevel().getUniqueId());
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user