sou moco v2
This commit is contained in:
parent
1c1b8a6f59
commit
895090cd51
@ -71,6 +71,7 @@ public class PracticeSettingsImpl implements ISettings {
|
||||
case LADDER:
|
||||
data.getOptions().setScoreboardState(ProfileOptionsItemState.DURATION);
|
||||
break;
|
||||
|
||||
default:
|
||||
data.getOptions().setScoreboardState(ProfileOptionsItemState.PING);
|
||||
break;
|
||||
@ -82,26 +83,27 @@ public class PracticeSettingsImpl implements ISettings {
|
||||
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Sidebar Lines")
|
||||
.addLore(
|
||||
"",
|
||||
CC.GRAY + "would you like a different view",
|
||||
CC.GRAY + "Would you like a different view",
|
||||
CC.GRAY + "on your scoreboard?",
|
||||
" ",
|
||||
(data.getOptions().getScoreboardStyle().name().equals("OLD") ? CC.GREEN + CC.BOLD + "■ " : CC.DARK_GRAY + CC.BOLD + "■ ") + "&fOld",
|
||||
(data.getOptions().getScoreboardStyle().name().equals("MODERN") ? CC.GREEN + CC.BOLD + "■ " : CC.DARK_GRAY + CC.BOLD + "■ ") + "&fModern"
|
||||
(data.getOptions().getScoreboardStyle() == SidebarOptionsItemState.OLD ? CC.GREEN + CC.BOLD + "■ " : CC.DARK_GRAY + CC.BOLD + "■ ") + "&fOld",
|
||||
(data.getOptions().getScoreboardStyle() == SidebarOptionsItemState.MODERN ? CC.GREEN + CC.BOLD + "■ " : CC.DARK_GRAY + CC.BOLD + "■ ") + "&fModern"
|
||||
)
|
||||
.toUpdatingButton((player1, clickType) -> {
|
||||
switch (data.getOptions().getScoreboardStyle()) {
|
||||
case OLD:
|
||||
data.getOptions().setScoreboardStyle(SidebarOptionsItemState.MODERN);
|
||||
break;
|
||||
case MODERN:
|
||||
if (data.getOptions().getScoreboardStyle() == SidebarOptionsItemState.MODERN) {
|
||||
data.getOptions().setScoreboardStyle(SidebarOptionsItemState.OLD);
|
||||
break;
|
||||
} else {
|
||||
data.getOptions().setScoreboardStyle(SidebarOptionsItemState.MODERN);
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
buttonList.add(new ItemBuilder(Material.LEASH)
|
||||
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Duel Requests")
|
||||
.addLore(
|
||||
@ -167,25 +169,6 @@ public class PracticeSettingsImpl implements ISettings {
|
||||
})
|
||||
);
|
||||
|
||||
buttonList.add(new ItemBuilder(Material.ENCHANTED_BOOK)
|
||||
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Matchmaking Settings")
|
||||
.addLore(
|
||||
CC.GRAY + "Configure matchmaking settings.",
|
||||
" ",
|
||||
CC.YELLOW + "[View matchmaking settings]"
|
||||
|
||||
)
|
||||
.toButton((player1, clickType) -> {
|
||||
if (!player1.hasPermission("practice.matchmaking.settings")) {
|
||||
player1.sendMessage(CC.RED + "You don't have permission to open Matchmaking Settings! Get more information at our store: store.nodebuff.com.");
|
||||
player1.closeInventory();
|
||||
return;
|
||||
}
|
||||
|
||||
new MatchmakingSettingsMenu().openMenu(player1);
|
||||
})
|
||||
);
|
||||
|
||||
return buttonList;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user