mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-22 18:09:06 +00:00
Add version of old message file to the file name
This commit is contained in:
parent
6cd814893d
commit
a7ff8e29a3
@ -27,7 +27,7 @@ public class Localization {
|
||||
|
||||
if(!fileVersion.equals(currentVersion)) {
|
||||
Bukkit.getConsoleSender().sendMessage(Format.FormatStringAll("&8[&eVentureChat&8]&e - Version Change Detected! Saving Old Messages.yml and Generating Latest File"));
|
||||
localizationFile.renameTo(new File(plugin.getDataFolder().getAbsolutePath(), "Messages_Old.yml"));
|
||||
localizationFile.renameTo(new File(plugin.getDataFolder().getAbsolutePath(), "Messages_Old_" + fileVersion + ".yml"));
|
||||
plugin.saveResource("Messages.yml", true);
|
||||
localization = YamlConfiguration.loadConfiguration(localizationFile);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user