mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 02:25:42 +01:00
Update locale library, fixes #2103
This commit is contained in:
parent
b3bd277478
commit
efb42f4d2c
@ -159,7 +159,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.PikaMug</groupId>
|
||||
<artifactId>LocaleLib</artifactId>
|
||||
<version>3.3</version>
|
||||
<version>3.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xyz.upperlevel.spigot.book</groupId>
|
||||
|
@ -2183,6 +2183,10 @@ public class Quester implements IQuester {
|
||||
}
|
||||
final Settings settings = plugin.getSettings();
|
||||
final LocaleManager localeManager = plugin.getLocaleManager();
|
||||
if (settings.canTranslateNames() && localeManager == null) {
|
||||
settings.setTranslateNames(false);
|
||||
plugin.getLogger().severe("Problem with locale manager! Item name translation disabled.");
|
||||
}
|
||||
for (BukkitObjective objective : q.getCurrentObjectivesTemp(quest, false, false)) {
|
||||
final String message = "- " + objective.getMessage();
|
||||
if (objective.getProgressAsItem() != null && objective.getGoalAsItem() != null) {
|
||||
|
@ -189,7 +189,7 @@ public class Quests extends JavaPlugin implements QuestsAPI {
|
||||
Class.forName("me.blackvein.quests.libs.localelib.LocaleManager");
|
||||
localeManager = new LocaleManager();
|
||||
} catch (final Exception ignored) {
|
||||
getLogger().info("LocaleLib not present. Is this a debug environment?");
|
||||
getLogger().warning("LocaleLib not present! Is this a debug environment?");
|
||||
}
|
||||
convoListener = new ConvoListener();
|
||||
blockListener = new BlockListener(this);
|
||||
|
Loading…
Reference in New Issue
Block a user