adicionando matchmaking settings dnv

This commit is contained in:
nearfe 2024-06-14 21:54:17 -03:00
parent 895090cd51
commit e07629c2a7

View File

@ -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;
}