Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.LobbyBrain.Inventory;
- import fr.minuskube.inv.SmartInventory;
- public class InventoryMain {
- static SetupPlugin sp = new SetupPlugin();
- public static String inventory;
- public static String inventory2;
- public static SmartInventory inv;
- @SuppressWarnings({ "static-access"})
- public static SmartInventory INV() {
- for(String itemkey : sp.plugin.getInventoryFile().getConfigurationSection("LobbyBrain.DefaultInventory").getKeys(false)) {
- if(sp.plugin.getInventoryFile().getString("LobbyBrain.DefaultInventory."+itemkey+".TYPE").contains("OPEN-MENU")) {
- inventory = sp.plugin.getInventoryFile().getString("LobbyBrain.DefaultInventory."+itemkey+".MENU");
- inv = SmartInventory.builder()
- .title(sp.plugin.getMenuFile().getString("LobbyBrain.Menus."+inventory+".Title"))
- .size(3, 9)
- .provider(new me.LobbyBrain.Inventory.InventoryProvider())
- .build();
- break;
- }
- }
- return inv;
- }
- @SuppressWarnings("static-access")
- public static SmartInventory INV2() {
- for(String itemkey : sp.plugin.getMenuFile().getConfigurationSection("LobbyBrain.Menus."+inventory2+".Items").getKeys(false))
- return SmartInventory.builder()
- .title(sp.plugin.getMenuFile().getString("LobbyBrain.Menus."+inventory2+".Title"))
- .size(sp.plugin.getMenuFile().getInt("LobbyBrain.Menus."+inventory2+".Size"), 9)
- .provider(new me.LobbyBrain.Inventory.InventoryProvider())
- .build();
- return inv;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement