9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-27 18:59:10 +00:00

It compiles!

This commit is contained in:
SamB440
2021-03-19 18:00:52 +00:00
parent b98f5e8b35
commit 71dc7d1574
2 changed files with 8 additions and 8 deletions

View File

@@ -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");

View File

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