Booleans can't be null :|
This commit is contained in:
parent
6e8dfd8e91
commit
338509c8d1
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
public class V10LiftPlugin extends JavaPlugin {
|
public class V10LiftPlugin extends JavaPlugin {
|
||||||
|
|
||||||
|
@ -63,7 +64,7 @@ public class V10LiftPlugin extends JavaPlugin {
|
||||||
metrics.addCustomChart(new Metrics.SingleLineChart("lifts", () -> DataManager.getLifts().size()));
|
metrics.addCustomChart(new Metrics.SingleLineChart("lifts", () -> DataManager.getLifts().size()));
|
||||||
|
|
||||||
//Load the update checker
|
//Load the update checker
|
||||||
if (MoreObjects.firstNonNull(getSConfig().getFile().getBoolean("CheckUpdates"), true)) {
|
if (!getSConfig().getFile().contains("CheckUpdates") || getSConfig().getFile().getBoolean("CheckUpdates")) {
|
||||||
new UpdateManager(this, 72317, UpdateManager.CheckType.SPIGOT).handleResponse((versionResponse, version) -> {
|
new UpdateManager(this, 72317, UpdateManager.CheckType.SPIGOT).handleResponse((versionResponse, version) -> {
|
||||||
if (versionResponse == UpdateManager.VersionResponse.FOUND_NEW) {
|
if (versionResponse == UpdateManager.VersionResponse.FOUND_NEW) {
|
||||||
Bukkit.getLogger().warning("[V10Lift] There is a new version available! Current: " + this.getDescription().getVersion() + " New: " + version);
|
Bukkit.getLogger().warning("[V10Lift] There is a new version available! Current: " + this.getDescription().getVersion() + " New: " + version);
|
||||||
|
|
Loading…
Reference in a new issue