From 8cc15c4e0026f689c75a6e03346aefa4c16f4f15 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Fri, 30 Nov 2018 23:52:56 -0500 Subject: [PATCH] Notify admin on lack of folder permissions --- src/main/java/me/blackvein/quests/util/Lang.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/blackvein/quests/util/Lang.java b/src/main/java/me/blackvein/quests/util/Lang.java index e3bb6bbd7..b6dfab80e 100644 --- a/src/main/java/me/blackvein/quests/util/Lang.java +++ b/src/main/java/me/blackvein/quests/util/Lang.java @@ -126,6 +126,8 @@ public class Lang { config_new.save(langFile_new); } else { plugin.getLogger().severe("Failed loading lang files for " + iso + " because they were not found. Using default en-US"); + plugin.getLogger().info("If the plugin has not generated language files, ensure Quests has write permissions"); + plugin.getLogger().info("For help, visit https://github.com/FlyingPikachu/Quests/wiki/Translations#troubleshooting"); iso = "en-US"; config = YamlConfiguration.loadConfiguration(new InputStreamReader(plugin.getResource("strings.yml"), "UTF-8")); for (String key : config.getKeys(false)) {