diff --git a/rpgregions/src/main/java/net/islandearth/rpgregions/gui/DiscoveryGUI.java b/rpgregions/src/main/java/net/islandearth/rpgregions/gui/DiscoveryGUI.java index f89e599..0041f06 100644 --- a/rpgregions/src/main/java/net/islandearth/rpgregions/gui/DiscoveryGUI.java +++ b/rpgregions/src/main/java/net/islandearth/rpgregions/gui/DiscoveryGUI.java @@ -1,7 +1,7 @@ package net.islandearth.rpgregions.gui; -import com.github.stefvanschie.inventoryframework.Gui; -import com.github.stefvanschie.inventoryframework.GuiItem; +import com.github.stefvanschie.inventoryframework.gui.GuiItem; +import com.github.stefvanschie.inventoryframework.gui.type.ChestGui; import com.github.stefvanschie.inventoryframework.pane.OutlinePane; import com.github.stefvanschie.inventoryframework.pane.PaginatedPane; import com.github.stefvanschie.inventoryframework.pane.StaticPane; @@ -29,11 +29,11 @@ import java.util.List; public class DiscoveryGUI extends RPGRegionsGUI { - private final Gui gui; + private final ChestGui gui; public DiscoveryGUI(RPGRegions plugin, Player player) { super(plugin, player); - this.gui = new Gui(plugin, plugin.getConfig().getInt("settings.server.gui.general.rows"), Translations.REGIONS.get(player)); + this.gui = new ChestGui(plugin.getConfig().getInt("settings.server.gui.general.rows"), Translations.REGIONS.get(player)); gui.setOnGlobalClick(click -> click.setCancelled(true)); // I wish there was a cleaner way to do this :( int backX = plugin.getConfig().getInt("settings.server.gui.back.posX"); diff --git a/rpgregions/src/main/java/net/islandearth/rpgregions/gui/EditorGUI.java b/rpgregions/src/main/java/net/islandearth/rpgregions/gui/EditorGUI.java index 87efcf4..77f9427 100644 --- a/rpgregions/src/main/java/net/islandearth/rpgregions/gui/EditorGUI.java +++ b/rpgregions/src/main/java/net/islandearth/rpgregions/gui/EditorGUI.java @@ -1,7 +1,7 @@ package net.islandearth.rpgregions.gui; -import com.github.stefvanschie.inventoryframework.Gui; -import com.github.stefvanschie.inventoryframework.GuiItem; +import com.github.stefvanschie.inventoryframework.gui.GuiItem; +import com.github.stefvanschie.inventoryframework.gui.type.ChestGui; import com.github.stefvanschie.inventoryframework.pane.OutlinePane; import com.github.stefvanschie.inventoryframework.pane.PaginatedPane; import com.github.stefvanschie.inventoryframework.pane.StaticPane; @@ -31,11 +31,11 @@ import java.util.List; public class EditorGUI extends RPGRegionsGUI { - private final Gui gui; + private final ChestGui gui; public EditorGUI(RPGRegions plugin, Player player, ConfiguredRegion region) { super(plugin, player); - this.gui = new Gui(plugin, 6, region.getCustomName()); + this.gui = new ChestGui(6, region.getCustomName()); gui.setOnGlobalClick(click -> click.setCancelled(true)); ClassEditor classEditor = new ClassEditor(region);