mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fix logger.info format
This commit is contained in:
parent
86cfeb76b6
commit
b6e7f90f6a
@ -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);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user