Skip to content

Commit

Permalink
Fixed miss type with SettingsMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
Devlrxxh committed Mar 3, 2024
1 parent d0ef2a5 commit b832fb9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/me/lrxh/practice/setting/SettingsMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ public ItemStack getButtonItem(Player player) {
switch (this.settings) {
case SHOW_SCOREBOARD: {
lore.add(profile.getOptions().showScoreboard() ? " &7&l▶ &aYes" : " &7&l▶ &7Yes");
lore.add(!profile.getOptions().showScoreboard() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(!profile.getOptions().showScoreboard() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(" ");
lore.add(!profile.getOptions().showScoreboard() ? "&aClick to enable" : "&aClick to disable");
break;
}
case MENU_SOUNDS: {
lore.add(profile.getOptions().menuSounds() ? " &7&l▶ &aYes" : " &7&l▶ &7Yes");
lore.add(!profile.getOptions().menuSounds() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(!profile.getOptions().menuSounds() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(" ");
lore.add(!profile.getOptions().menuSounds() ? "&aClick to enable" : "&aClick to disable");
break;
Expand All @@ -93,28 +93,28 @@ public ItemStack getButtonItem(Player player) {
}
case SHOW_LINES: {
lore.add(profile.getOptions().scoreboardLines() ? " &7&l▶ &aYes" : " &7&l▶ &7Yes");
lore.add(!profile.getOptions().scoreboardLines() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(!profile.getOptions().scoreboardLines() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(" ");
lore.add(!profile.getOptions().scoreboardLines() ? "&aClick to enable" : "&aClick to disable");
break;
}
case ALLOW_DUELS: {
lore.add(profile.getOptions().receiveDuelRequests() ? " &7&l▶ &aYes" : " &7&l▶ &7Yes");
lore.add(!profile.getOptions().receiveDuelRequests() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(!profile.getOptions().receiveDuelRequests() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(" ");
lore.add(!profile.getOptions().receiveDuelRequests() ? "&aClick to enable" : "&aClick to disable");
break;
}
case ALLOW_SPECTATORS: {
lore.add(profile.getOptions().allowSpectators() ? " &7&l▶ &aYes" : " &7&l▶ &7Yes");
lore.add(!profile.getOptions().allowSpectators() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(!profile.getOptions().allowSpectators() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(" ");
lore.add(!profile.getOptions().allowSpectators() ? "&aClick to enable" : "&aClick to disable");
break;
}
case SHOW_PLAYERS: {
lore.add(profile.getOptions().showPlayers() ? " &7&l▶ &aYes" : " &7&l▶ &7Yes");
lore.add(!profile.getOptions().showPlayers() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(!profile.getOptions().showPlayers() ? " &7&l▶ &cNo" : " &7&l▶ &7No");
lore.add(" ");
lore.add(!profile.getOptions().showPlayers() ? "&aClick to enable" : "&aClick to disable");
break;
Expand Down

0 comments on commit b832fb9

Please sign in to comment.