Added send-all-when-back-online option to the config

This commit is contained in:
ajgeiss0702
2020-07-16 11:25:06 -07:00
parent cf19a658e3
commit c1800d7426
3 changed files with 19 additions and 0 deletions
@@ -88,6 +88,12 @@ public class Server {
}
return online;
}
public boolean justWentOnline() {
BungeeConfig config = Manager.getInstance().pl.config;
return System.currentTimeMillis()-lastOffline <= (config.getDouble("wait-time")) && online;
}
public boolean isFull() {
return playercount >= maxplayers;
}