Simplify ServerRestartManager message when all days are used.
This commit is contained in:
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ServerRestartManager
|
|||||||
|
|
||||||
if (lastRestart != null)
|
if (lastRestart != null)
|
||||||
{
|
{
|
||||||
if (Config.SERVER_RESTART_DAYS.isEmpty())
|
if (Config.SERVER_RESTART_DAYS.isEmpty() || (Config.SERVER_RESTART_DAYS.size() == 7))
|
||||||
{
|
{
|
||||||
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
nextRestartTime = new SimpleDateFormat("HH:mm").format(lastRestart.getTime());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user