mirror of
https://github.com/PryPurity/WorldBorder.git
synced 2024-09-29 04:07:28 +02:00
Removed color tags from fill and trim task progress logs, since color tags no longer work correctly for the console
This commit is contained in:
parent
502a4d57ff
commit
acd2324388
@ -330,7 +330,7 @@ public class WorldFillTask implements Runnable
|
|||||||
{
|
{
|
||||||
lastReport = Config.Now();
|
lastReport = Config.Now();
|
||||||
double perc = ((double)(reportTotal + reportNum) / (double)reportTarget) * 100;
|
double perc = ((double)(reportTotal + reportNum) / (double)reportTarget) * 100;
|
||||||
sendMessage(reportNum + " more map chunks processed (" + (reportTotal + reportNum) + " total, " + ChatColor.GREEN.toString() + Config.coord.format(perc) + "%" + ChatColor.WHITE.toString() + ")");
|
sendMessage(reportNum + " more map chunks processed (" + (reportTotal + reportNum) + " total, " + Config.coord.format(perc) + "%" + ")");
|
||||||
reportTotal += reportNum;
|
reportTotal += reportNum;
|
||||||
reportNum = 0;
|
reportNum = 0;
|
||||||
|
|
||||||
@ -344,7 +344,7 @@ public class WorldFillTask implements Runnable
|
|||||||
// Due to the apparent chunk generation memory leak, we need to track memory availability
|
// Due to the apparent chunk generation memory leak, we need to track memory availability
|
||||||
int availMem = Config.AvailableMemory();
|
int availMem = Config.AvailableMemory();
|
||||||
|
|
||||||
Config.Log("[Fill] " + text + ChatColor.GOLD.toString() + " (free mem: " + availMem + " MB)");
|
Config.Log("[Fill] " + text + " (free mem: " + availMem + " MB)");
|
||||||
if (notifyPlayer != null)
|
if (notifyPlayer != null)
|
||||||
notifyPlayer.sendMessage("[Fill] " + text);
|
notifyPlayer.sendMessage("[Fill] " + text);
|
||||||
|
|
||||||
|
@ -372,7 +372,7 @@ public class WorldTrimTask implements Runnable
|
|||||||
{
|
{
|
||||||
lastReport = Config.Now();
|
lastReport = Config.Now();
|
||||||
double perc = ((double)(reportTotal) / (double)reportTarget) * 100;
|
double perc = ((double)(reportTotal) / (double)reportTarget) * 100;
|
||||||
sendMessage(reportTrimmedRegions + " entire region(s) and " + reportTrimmedChunks + " individual chunk(s) trimmed so far (" + ChatColor.GREEN.toString() + Config.coord.format(perc) + "% done" + ChatColor.WHITE.toString() + ")");
|
sendMessage(reportTrimmedRegions + " entire region(s) and " + reportTrimmedChunks + " individual chunk(s) trimmed so far (" + Config.coord.format(perc) + "% done" + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
// send a message to the server console/log and possibly to an in-game player
|
// send a message to the server console/log and possibly to an in-game player
|
||||||
|
Loading…
Reference in New Issue
Block a user