Improve world generator diagnosis

This commit is contained in:
NotMyFault 2019-10-01 12:12:42 +02:00
parent becac84e6e
commit 267bebd0e8

View File

@ -115,6 +115,15 @@ import java.util.stream.Collectors;
"&cSkipping PlotSquared.use_THIS.yml because it's empty"); "&cSkipping PlotSquared.use_THIS.yml because it's empty");
} }
try {
final File MultiverseWorlds =
new File(PlotSquared.get().IMP.getDirectory(), "../../plugins/Multiverse-Core/worlds.yml");
incendoPaster
.addFile(new IncendoPaster.PasteFile("MultiverseCore/worlds.yml", readFile(MultiverseWorlds)));
} catch (final IOException ignored) {
MainUtil.sendMessage(player, "&cSkipping Multiverse worlds.yml because the plugin is not in use");
}
try { try {
final String rawResponse = incendoPaster.upload(); final String rawResponse = incendoPaster.upload();
final JsonObject jsonObject = final JsonObject jsonObject =