diff --git a/pom.xml b/pom.xml index 2a6122e..7c6c664 100644 --- a/pom.xml +++ b/pom.xml @@ -150,8 +150,8 @@ net.guizhanss SlimefunTranslation - ce9fb1c6f5 + 81b930d5ad provided - \ No newline at end of file + diff --git a/src/main/java/io/github/schntgaispock/slimehud/translation/TranslationManager.java b/src/main/java/io/github/schntgaispock/slimehud/translation/TranslationManager.java index 8af4c88..c64e281 100644 --- a/src/main/java/io/github/schntgaispock/slimehud/translation/TranslationManager.java +++ b/src/main/java/io/github/schntgaispock/slimehud/translation/TranslationManager.java @@ -2,7 +2,7 @@ import io.github.schntgaispock.slimehud.SlimeHUD; import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem; -import net.guizhanss.slimefuntranslation.SlimefunTranslation; +import net.guizhanss.slimefuntranslation.api.SlimefunTranslationAPI; import org.bukkit.Bukkit; import org.bukkit.entity.Player; @@ -31,9 +31,7 @@ public String getItemName(Player p, SlimefunItem sfItem) { } try { - return SlimefunTranslation.getTranslationService().getTranslatedItemName( - SlimefunTranslation.getUserService().getUser(p), - sfItem); + return SlimefunTranslationAPI.getItemName(SlimefunTranslationAPI.getUser(p), sfItem); } catch (NoClassDefFoundError e) { SlimeHUD.getInstance().getLogger().info("Could not get item translation! Please update SlimefunTranslation"); translationEnabled = false;