Fix logger.info format

This commit is contained in:
N0tMyFaultOG 2020-08-18 15:34:43 +02:00
parent 86cfeb76b6
commit b6e7f90f6a

View File

@ -175,8 +175,7 @@ public class Claim extends SubCommand {
try { try {
TaskManager.getPlatformImplementation().sync(() -> { TaskManager.getPlatformImplementation().sync(() -> {
if (!plot.claim(player, true, finalSchematic, false)) { if (!plot.claim(player, true, finalSchematic, false)) {
logger.info(TranslatableCaption.of("<prefix>") + String logger.info("[P2] Failed to claim plot {}", plot.getId().toCommaSeparatedString());
.format("Failed to claim plot %s", plot.getId().toCommaSeparatedString()));
player.sendMessage(TranslatableCaption.of("working.plot_not_claimed")); player.sendMessage(TranslatableCaption.of("working.plot_not_claimed"));
plot.setOwnerAbs(null); plot.setOwnerAbs(null);
} else if (area.isAutoMerge()) { } else if (area.isAutoMerge()) {
@ -197,9 +196,7 @@ public class Claim extends SubCommand {
e.printStackTrace(); e.printStackTrace();
} }
}, () -> { }, () -> {
logger.info(TranslatableCaption.of("<prefix>") + String logger.info("[P2] Failed to add plot to database: {}", plot.getId().toCommaSeparatedString());
.format("Failed to add plot %s to the database",
plot.getId().toCommaSeparatedString()));
player.sendMessage(TranslatableCaption.of("working.plot_not_claimed")); player.sendMessage(TranslatableCaption.of("working.plot_not_claimed"));
plot.setOwnerAbs(null); plot.setOwnerAbs(null);
}); });