mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-06 06:41:44 +00:00
feat: adding updater for config version 11
This commit is contained in:
@@ -86,6 +86,9 @@ public class Version11 {
|
||||
toolStats.logger.info("Adding enabled.damage-done.bow to config.yml");
|
||||
toolStats.logger.info("Adding enabled.damage-done.mace to config.yml");
|
||||
|
||||
toolStats.logger.info("Changing messages.flight-time to new format");
|
||||
toolStats.config.set("messages.flight-time", "&7Flight time: &8{years}y {months}m {days}d {hours}h {minutes}m {seconds}s");
|
||||
|
||||
// save the config and reload it
|
||||
try {
|
||||
toolStats.config.save("plugins" + File.separator + "ToolStats" + File.separator + "config.yml");
|
||||
|
||||
Reference in New Issue
Block a user