diff --git a/invui/src/main/java/xyz/xenondevs/invui/window/AbstractWindow.java b/invui/src/main/java/xyz/xenondevs/invui/window/AbstractWindow.java index 72a9080..f3215cd 100644 --- a/invui/src/main/java/xyz/xenondevs/invui/window/AbstractWindow.java +++ b/invui/src/main/java/xyz/xenondevs/invui/window/AbstractWindow.java @@ -194,7 +194,7 @@ public abstract class AbstractWindow implements Window, GuiParent { } } else { if (player.equals(getViewer())) - Bukkit.getScheduler().runTaskLater(InvUI.getInstance().getPlugin(), this::show, 0); + Bukkit.getScheduler().runTaskLater(InvUI.getInstance().getPlugin(), this::open, 0); } } @@ -250,7 +250,7 @@ public abstract class AbstractWindow implements Window, GuiParent { } @Override - public void show() { + public void open() { Player viewer = getViewer(); if (viewer == null) throw new IllegalStateException("The player is not online."); @@ -485,8 +485,8 @@ public abstract class AbstractWindow implements Window, GuiParent { } @Override - public void show(Player viewer) { - build(viewer).show(); + public void open(Player viewer) { + build(viewer).open(); } @SuppressWarnings("unchecked") diff --git a/invui/src/main/java/xyz/xenondevs/invui/window/Window.java b/invui/src/main/java/xyz/xenondevs/invui/window/Window.java index f25d8bd..7f66414 100644 --- a/invui/src/main/java/xyz/xenondevs/invui/window/Window.java +++ b/invui/src/main/java/xyz/xenondevs/invui/window/Window.java @@ -90,7 +90,7 @@ public interface Window { /** * Shows the window to the player. */ - void show(); + void open(); /** * Gets if the player is able to close the {@link Inventory}. @@ -326,7 +326,7 @@ public interface Window { * * @param viewer The {@link Player} to show the {@link Window} to. */ - void show(Player viewer); + void open(Player viewer); /** * Clones the {@link Builder Window Builder}.