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:
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user