From abe69adc121ab54ca06f9985cae7997e6a9832cb Mon Sep 17 00:00:00 2001 From: U61vashka Date: Wed, 4 Jan 2023 19:15:30 +0600 Subject: [PATCH] Fixed #5 --- .../java/com/ubivashka/vk/bukkit/config/BukkitPluginConfig.java | 2 +- .../java/com/ubivashka/vk/bungee/config/BungeePluginConfig.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/java/com/ubivashka/vk/bukkit/config/BukkitPluginConfig.java b/bukkit/src/main/java/com/ubivashka/vk/bukkit/config/BukkitPluginConfig.java index 47626c9..439f556 100644 --- a/bukkit/src/main/java/com/ubivashka/vk/bukkit/config/BukkitPluginConfig.java +++ b/bukkit/src/main/java/com/ubivashka/vk/bukkit/config/BukkitPluginConfig.java @@ -64,7 +64,7 @@ public boolean isLoggingEnabled() { } private boolean getBoolean(String... path) { - return getSection((sectionOptional, key) -> sectionOptional.map(section -> section.getBoolean(key))).orElse(false); + return getSection((sectionOptional, key) -> sectionOptional.map(section -> section.getBoolean(key)), path).orElse(false); } private String getString(String... path) { diff --git a/bungee/src/main/java/com/ubivashka/vk/bungee/config/BungeePluginConfig.java b/bungee/src/main/java/com/ubivashka/vk/bungee/config/BungeePluginConfig.java index 73d1c71..85a6a66 100644 --- a/bungee/src/main/java/com/ubivashka/vk/bungee/config/BungeePluginConfig.java +++ b/bungee/src/main/java/com/ubivashka/vk/bungee/config/BungeePluginConfig.java @@ -69,7 +69,7 @@ public boolean isLoggingEnabled() { } private boolean getBoolean(String... path) { - return getSection((sectionOptional, key) -> sectionOptional.map(section -> section.getBoolean(key))).orElse(false); + return getSection((sectionOptional, key) -> sectionOptional.map(section -> section.getBoolean(key)), path).orElse(false); } private String getString(String... path) {