mirror of
https://github.com/Brettflan/WorldBorder.git
synced 2024-11-25 19:45:56 +01:00
suppress logging of border-checking task being "stopped" when the task is being restarted (which is done to make sure there's only one such task running at any time), to reduce potential confusion
This commit is contained in:
parent
9abf6ff938
commit
e64defbdeb
@ -453,7 +453,7 @@ public class Config
|
||||
|
||||
public static void StartBorderTimer()
|
||||
{
|
||||
StopBorderTimer();
|
||||
StopBorderTimer(false);
|
||||
|
||||
borderTask = plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new BorderCheckTask(), timerTicks, timerTicks);
|
||||
|
||||
@ -464,12 +464,17 @@ public class Config
|
||||
}
|
||||
|
||||
public static void StopBorderTimer()
|
||||
{
|
||||
StopBorderTimer(true);
|
||||
}
|
||||
public static void StopBorderTimer(boolean logIt)
|
||||
{
|
||||
if (borderTask == -1) return;
|
||||
|
||||
plugin.getServer().getScheduler().cancelTask(borderTask);
|
||||
borderTask = -1;
|
||||
logConfig("Border-checking timed task stopped.");
|
||||
if (logIt)
|
||||
logConfig("Border-checking timed task stopped.");
|
||||
}
|
||||
|
||||
public static void StopFillTask()
|
||||
|
Loading…
Reference in New Issue
Block a user