Simplify ServerRestartManager message when all days are used.

This commit is contained in:
MobiusDevelopment
2020-01-15 10:58:24 +00:00
parent 62a5c7d47f
commit de440d5942
17 changed files with 17 additions and 17 deletions

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}

View File

@ -79,7 +79,7 @@ public class ServerRestartManager
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());
}