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 {
TaskManager.getPlatformImplementation().sync(() -> {
if (!plot.claim(player, true, finalSchematic, false)) {
logger.info(TranslatableCaption.of("<prefix>") + 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("<prefix>") + 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);
});