Separate login update check from general update check

This commit is contained in:
Frank van der Heijden 2020-06-27 10:59:16 +02:00
parent 522f20702d
commit 75545ac156
No known key found for this signature in database
GPG key ID: 26DA56488D314D11
2 changed files with 2 additions and 1 deletions

View file

@ -19,7 +19,7 @@ public class MainListener implements Listener {
*/
@EventHandler(priority = EventPriority.LOWEST)
public void onPlayerJoin(PlayerJoinEvent event) {
if (!config.getBoolean("settings.check-updates")) return;
if (!config.getBoolean("settings.check-updates-login")) return;
Player player = event.getPlayer();
if (player.hasPermission("serverutils.notification.update")) {

View file

@ -1,5 +1,6 @@
settings:
disable-plugins-command: false
check-updates: true
check-updates-login: true
download-updates: false
download-at-startup-and-update: false