correct log message
This commit is contained in:
parent
73eecd3f7f
commit
aa0eedab87
@ -73,7 +73,7 @@ public class EnableLeashingVillagers implements VillagerOptimizerModule, Listene
|
||||
&& log_enabled
|
||||
) {
|
||||
final Location location = villager.getLocation();
|
||||
VillagerOptimizer.getLog().info(Component.text(player.getName() + " leashed a villager at " +
|
||||
VillagerOptimizer.getLog().info(Component.text(player.getName() + " un-leashed a villager at " +
|
||||
"x=" + location.getX() + ", y=" + location.getY() + ", z=" + location.getZ() +
|
||||
" in world " + location.getWorld().getName()).style(VillagerOptimizer.plugin_style));
|
||||
}
|
||||
|
@ -142,6 +142,7 @@ public class OptimizeByBlock implements VillagerOptimizerModule, Listener {
|
||||
.replaceText(placedMaterial)
|
||||
));
|
||||
}
|
||||
|
||||
if (log_enabled) {
|
||||
final Location location = closestOptimizableVillager.villager().getLocation();
|
||||
VillagerOptimizer.getLog().info(Component.text(player.getName() + " optimized villager by block at " +
|
||||
@ -206,6 +207,7 @@ public class OptimizeByBlock implements VillagerOptimizerModule, Listener {
|
||||
.replaceText(brokenMaterial)
|
||||
));
|
||||
}
|
||||
|
||||
if (log_enabled) {
|
||||
final Location location = closestOptimizedVillager.villager().getLocation();
|
||||
VillagerOptimizer.getLog().info(Component.text(player.getName() + " unoptimized villager by block at " +
|
||||
|
@ -106,8 +106,10 @@ public class OptimizeByNametag implements VillagerOptimizerModule, Listener {
|
||||
wVillager.setOptimizationType(optimizeEvent.getOptimizationType());
|
||||
wVillager.saveOptimizeTime();
|
||||
|
||||
if (notify_player)
|
||||
if (notify_player) {
|
||||
VillagerOptimizer.getLang(player.locale()).nametag_optimize_success.forEach(player::sendMessage);
|
||||
}
|
||||
|
||||
if (log_enabled) {
|
||||
final Location location = wVillager.villager().getLocation();
|
||||
VillagerOptimizer.getLog().info(Component.text(player.getName() +
|
||||
@ -133,8 +135,10 @@ public class OptimizeByNametag implements VillagerOptimizerModule, Listener {
|
||||
|
||||
wVillager.setOptimizationType(OptimizationType.NONE);
|
||||
|
||||
if (notify_player)
|
||||
if (notify_player) {
|
||||
VillagerOptimizer.getLang(player.locale()).nametag_unoptimize_success.forEach(player::sendMessage);
|
||||
}
|
||||
|
||||
if (log_enabled) {
|
||||
final Location location = wVillager.villager().getLocation();
|
||||
VillagerOptimizer.getLog().info(Component.text(player.getName() +
|
||||
|
Loading…
x
Reference in New Issue
Block a user