Improve per-player schematic declaration

This commit is contained in:
NotMyFault 2021-02-22 10:47:34 +01:00
parent e550189cb8
commit 4a6af7182a
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
1 changed files with 11 additions and 4 deletions

View File

@ -617,12 +617,19 @@ public class SchematicCommands {
if (Settings.IMP.PATHS.PER_PLAYER_SCHEMATICS && Settings.IMP.EXPERIMENTAL.PER_PLAYER_FILE_SIZE_LIMIT > -1) {
headerBytesElem += String.format(" / %dkb",
Settings.IMP.EXPERIMENTAL.PER_PLAYER_FILE_SIZE_LIMIT );
Settings.IMP.EXPERIMENTAL.PER_PLAYER_FILE_SIZE_LIMIT);
}
if (Settings.IMP.PATHS.PER_PLAYER_SCHEMATICS) {
String fullHeader = "| My Schematics: " + headerBytesElem + " |";
PaginationBox paginationBox = PaginationBox.fromComponents(fullHeader, pageCommand, components);
actor.print(paginationBox.create(page));
} else {
String fullHeader = "| Schematics: " + headerBytesElem + " |";
PaginationBox paginationBox = PaginationBox.fromComponents(fullHeader, pageCommand, components);
actor.print(paginationBox.create(page));
}
String fullHeader = "| Schematics: " + headerBytesElem + " |";
PaginationBox paginationBox = PaginationBox.fromComponents(fullHeader, pageCommand, components);
actor.print(paginationBox.create(page));
}
@Command(