9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-30 12:29:15 +00:00

Merge branch 'Xiao-MoMi:dev' into dev

This commit is contained in:
jhqwqmc
2025-06-07 09:28:06 +08:00
committed by GitHub
23 changed files with 775 additions and 626 deletions

View File

@@ -53,7 +53,7 @@ public class DisableResourceCommand extends BukkitCommandFeature<CommandSender>
return;
}
}
YamlDocument document = plugin().config().loadYamlData(packMetaPath.toFile());
YamlDocument document = plugin().config().loadYamlData(packMetaPath);
document.set("enable", false);
try {
document.save(packMetaPath.toFile());

View File

@@ -52,7 +52,7 @@ public class EnableResourceCommand extends BukkitCommandFeature<CommandSender> {
return;
}
}
YamlDocument document = plugin().config().loadYamlData(packMetaPath.toFile());
YamlDocument document = plugin().config().loadYamlData(packMetaPath);
document.set("enable", true);
try {
document.save(packMetaPath.toFile());