From 4a6af7182a05727cdd1a4ec1b63ceb313b6e9b5f Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Mon, 22 Feb 2021 10:47:34 +0100 Subject: [PATCH] Improve per-player schematic declaration --- .../worldedit/command/SchematicCommands.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java index cf3488921..36f3721d6 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java @@ -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(