diff --git a/build.gradle.kts b/build.gradle.kts index c8723a690..9932858ef 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -28,7 +28,7 @@ plugins { group = "rocks.gravili.notquests" -version = "5.8.0" +version = "5.8.1" repositories { diff --git a/paper/src/main/java/rocks/gravili/notquests/paper/managers/LanguageManager.java b/paper/src/main/java/rocks/gravili/notquests/paper/managers/LanguageManager.java index c19326b5d..d40707499 100644 --- a/paper/src/main/java/rocks/gravili/notquests/paper/managers/LanguageManager.java +++ b/paper/src/main/java/rocks/gravili/notquests/paper/managers/LanguageManager.java @@ -42,6 +42,7 @@ import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.entity.Player; +import org.bukkit.inventory.ItemStack; import org.checkerframework.checker.nullness.qual.NonNull; import org.jetbrains.annotations.Nullable; import rocks.gravili.notquests.paper.NotQuests; @@ -325,6 +326,13 @@ public final FileConfiguration getLanguageConfig() { return languageConfig; } + + /*public final ItemStack getComponent(final String languageString, final Player targetPlayer, Object... internalPlaceholderObjects){ + final String material = getString(languageString + ".material", targetPlayer, internalPlaceholderObjects); + + return main.parse(getString(languageString, targetPlayer, internalPlaceholderObjects)).decoration(TextDecoration.ITALIC, false); + }*/ + public final Component getComponent(final String languageString, final Player targetPlayer, Object... internalPlaceholderObjects){ return main.parse(getString(languageString, targetPlayer, internalPlaceholderObjects)).decoration(TextDecoration.ITALIC, false); }