Fix requiring restart for /ps load after /ps save & make descriptions nicer

This commit is contained in:
dordsor21 2019-01-11 12:53:48 +00:00
parent 446c47d148
commit 21f0d26c9d
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ public class Load extends SubCommand {
List<String> schematics = player.getMeta("plot_schematics");
for (int i = 0; i < Math.min(schematics.size(), 32); i++) {
try {
String schematic = schematics.get(i);
String schematic = schematics.get(i).split("\\.")[0];
String[] split = schematic.split("_");
if (split.length < 5) {
continue;

View file

@ -74,7 +74,7 @@ public class Save extends SubCommand {
MainUtil.sendMessage(player, C.SAVE_SUCCESS);
List<String> schematics = player.getMeta("plot_schematics");
if (schematics != null) {
schematics.add(file);
schematics.add(file + ".schematic");
}
}
});