mirror of
https://github.com/Brettflan/WorldBorder.git
synced 2024-11-22 18:16:24 +01: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();
|
||||
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;
|
||||
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
|
||||
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)
|
||||
notifyPlayer.sendMessage("[Fill] " + text);
|
||||
|
||||
|
@ -372,7 +372,7 @@ public class WorldTrimTask implements Runnable
|
||||
{
|
||||
lastReport = Config.Now();
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user