diff --git a/build.gradle b/build.gradle index 2a2fb24..f3eadc4 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'com.danifoldi' -version '1.0.4' +version '1.0.5' sourceCompatibility = JavaVersion.VERSION_11 repositories { diff --git a/src/main/java/com/danifoldi/bungeegui/main/GuiHandler.java b/src/main/java/com/danifoldi/bungeegui/main/GuiHandler.java index 52643df..219b70c 100644 --- a/src/main/java/com/danifoldi/bungeegui/main/GuiHandler.java +++ b/src/main/java/com/danifoldi/bungeegui/main/GuiHandler.java @@ -202,6 +202,10 @@ void close(ProxiedPlayer player) { } GuiGrid getOpenGui(UUID uuid) { + if (!openGuis.containsKey(uuid)) { + return null; + } + return menus.get(openGuis.get(uuid).getFirst()); } String getGuiTarget(UUID uuid) { diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 17bfbb7..1978e1f 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -124,9 +124,6 @@ guis: size: 45 title: '&6BungeeGui Authors' items: - '10': - type: cobblestone - enchanted: true '0': type: nether_star '8':