From b6e7f90f6a4166a4935a19716511146a87e5cf09 Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Tue, 18 Aug 2020 15:34:43 +0200 Subject: [PATCH] Fix logger.info format --- Core/src/main/java/com/plotsquared/core/command/Claim.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Claim.java b/Core/src/main/java/com/plotsquared/core/command/Claim.java index 28fa18d55..fa5639b71 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Claim.java +++ b/Core/src/main/java/com/plotsquared/core/command/Claim.java @@ -175,8 +175,7 @@ public class Claim extends SubCommand { try { TaskManager.getPlatformImplementation().sync(() -> { if (!plot.claim(player, true, finalSchematic, false)) { - logger.info(TranslatableCaption.of("") + String - .format("Failed to claim plot %s", plot.getId().toCommaSeparatedString())); + logger.info("[P2] Failed to claim plot {}", plot.getId().toCommaSeparatedString()); player.sendMessage(TranslatableCaption.of("working.plot_not_claimed")); plot.setOwnerAbs(null); } else if (area.isAutoMerge()) { @@ -197,9 +196,7 @@ public class Claim extends SubCommand { e.printStackTrace(); } }, () -> { - logger.info(TranslatableCaption.of("") + String - .format("Failed to add plot %s to the database", - plot.getId().toCommaSeparatedString())); + logger.info("[P2] Failed to add plot to database: {}", plot.getId().toCommaSeparatedString()); player.sendMessage(TranslatableCaption.of("working.plot_not_claimed")); plot.setOwnerAbs(null); });