This commit is contained in:
Sar 2025-02-26 20:58:03 +08:00 committed by GitHub
parent 22f072f738
commit 482a6332f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,7 +93,7 @@ public class Ollamachat extends JavaPlugin implements Listener {
private void reloadConfigValues() {
File configFile = new File(getDataFolder(), "config.yml");
if (!configFile.exists()) {
saveDefaultConfig(); // 如果配置文件不存在保存默认配置
saveDefaultConfig();
} else {
try {
YamlConfiguration config = YamlConfiguration.loadConfiguration(configFile);