1
0
mirror of https://e.coding.net/circlecloud/Residence.git synced 2025-11-26 22:06:07 +00:00

update language config and add new flag

This commit is contained in:
502647092
2015-09-29 20:48:01 +08:00
parent 7ff378d3c8
commit cbefdc9ac2
8 changed files with 73 additions and 14 deletions

View File

@@ -317,7 +317,7 @@ public class ResidenceMain extends JavaPlugin {
yml.load();
rentmanager = RentManager.load(this, (Map<String, Object>) yml.getRoot().get("RentSystem"));
}
this.getLogger().info("从配置文件中读取领地数据,耗时" + ((float) (System.currentTimeMillis() - time) / 1000) + ")");
this.getLogger().info("从配置文件中读取领地数据,耗时 " + ((float) (System.currentTimeMillis() - time) / 1000) + "");
return true;
} catch (final Exception ex) {
this.getLogger().warning("领地数据载入时发生错误,请报告以下内容给作者: ");
@@ -510,15 +510,15 @@ public class ResidenceMain extends JavaPlugin {
}
}
this.getLogger().info("载入完成! 版本: " + this.getDescription().getVersion() + " 重制 by 喵♂呜");
backup = new DataBackup(this);
init = true;
} catch (final Exception ex) {
init = false;
setEnabled(false);
this.getServer().getPluginManager().disablePlugin(this);
this.getLogger().warning(" - 初始化失败! 卸载插件! 请报告以下错误给作者,谢谢!");
this.getLogger().warning("错误: " + ex);
ex.printStackTrace();
init = false;
}
backup = new DataBackup(this);
new VersionChecker(this);
}
@@ -577,7 +577,6 @@ public class ResidenceMain extends JavaPlugin {
File ymlSaveLoc = new File(saveFolder, "forsale.yml");
File tmpFile = new File(saveFolder, "tmp_forsale.yml");
yml = new YMLSaveHelper(tmpFile);
yml.save();
yml.getRoot().put("Version", saveVersion);
yml.getRoot().put("Economy", tmanager.save());
yml.save();
@@ -645,7 +644,7 @@ public class ResidenceMain extends JavaPlugin {
ymlSaveLoc.renameTo(backupFile);
}
tmpFile.renameTo(ymlSaveLoc);
this.getLogger().info("保存领地数据到文件中,耗时" + ((float) (System.currentTimeMillis() - time) / 1000) + ")");
this.getLogger().info("保存领地数据到文件中,耗时 " + ((float) (System.currentTimeMillis() - time) / 1000) + "");
if (cmanager.showIntervalMessages()) {
this.getLogger().info(" - 保存插件数据...");
}