diff --git a/UltimateChat-Spigot/src/main/java/br/net/fabiozumbi12/UltimateChat/Bukkit/config/UCLang.java b/UltimateChat-Spigot/src/main/java/br/net/fabiozumbi12/UltimateChat/Bukkit/config/UCLang.java index 621f9e18..c4ba3176 100644 --- a/UltimateChat-Spigot/src/main/java/br/net/fabiozumbi12/UltimateChat/Bukkit/config/UCLang.java +++ b/UltimateChat-Spigot/src/main/java/br/net/fabiozumbi12/UltimateChat/Bukkit/config/UCLang.java @@ -115,10 +115,10 @@ private void loadLang() { } if (loadedlang.get("_lang.version") != null) { - int langv = Integer.parseInt(loadedlang.get("_lang.version").toString().replace(".", "")); + int langv = Integer.parseInt(loadedlang.get("_lang.version").toString().split("-")[0].replace(".", "")); int rpv = Integer.parseInt(UChat.get().getPDF().getVersion().split("-")[0].replace(".", "")); if (langv < rpv || langv == 0) { - UChat.get().getUCLogger().warning("Your lang file is outdated. Probally need strings updates!"); + UChat.get().getUCLogger().warning("Your lang file is outdated. Probably need strings updates!"); UChat.get().getUCLogger().warning("Lang file version: " + loadedlang.get("_lang.version")); loadedlang.put("_lang.version", UChat.get().getPDF().getVersion()); }