Separate login update check from general update check
This commit is contained in:
parent
522f20702d
commit
75545ac156
2 changed files with 2 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ public class MainListener implements Listener {
|
||||||
*/
|
*/
|
||||||
@EventHandler(priority = EventPriority.LOWEST)
|
@EventHandler(priority = EventPriority.LOWEST)
|
||||||
public void onPlayerJoin(PlayerJoinEvent event) {
|
public void onPlayerJoin(PlayerJoinEvent event) {
|
||||||
if (!config.getBoolean("settings.check-updates")) return;
|
if (!config.getBoolean("settings.check-updates-login")) return;
|
||||||
|
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
if (player.hasPermission("serverutils.notification.update")) {
|
if (player.hasPermission("serverutils.notification.update")) {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
settings:
|
settings:
|
||||||
disable-plugins-command: false
|
disable-plugins-command: false
|
||||||
check-updates: true
|
check-updates: true
|
||||||
|
check-updates-login: true
|
||||||
download-updates: false
|
download-updates: false
|
||||||
download-at-startup-and-update: false
|
download-at-startup-and-update: false
|
||||||
Loading…
Add table
Add a link
Reference in a new issue