mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-05-06 18:20:46 +00:00
Fix requiring restart for /ps load after /ps save & make descriptions nicer
This commit is contained in:
parent
446c47d148
commit
21f0d26c9d
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue