diff --git a/src/main/java/land/battle/practice/settings/PracticeSettingsImpl.java b/src/main/java/land/battle/practice/settings/PracticeSettingsImpl.java index 4b1d70d..7c72ec2 100644 --- a/src/main/java/land/battle/practice/settings/PracticeSettingsImpl.java +++ b/src/main/java/land/battle/practice/settings/PracticeSettingsImpl.java @@ -169,6 +169,25 @@ 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.minion.lol."); + player1.closeInventory(); + return; + } + + new MatchmakingSettingsMenu().openMenu(player1); + }) + ); + return buttonList; }