Fix typo in settings

This commit is contained in:
Lennart ten wolde 2017-02-08 00:37:13 +01:00
parent 2b33e17397
commit f56fa4d35e
3 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ public class Settings {
/**
* Uncatagorized ConfigOption
*/
public static final ConfigOption<Integer> REQUEST_EXPRY = new ConfigOption<>("requestExpiry", 60);
public static final ConfigOption<Integer> REQUEST_EXPIRY = new ConfigOption<>("requestExpiry", 60);
public static final ConfigOption<Boolean> ENABLE_PRIEST = new ConfigOption<>("enable-priests", false);
/**
@ -89,7 +89,7 @@ public class Settings {
"Updater settings, checks for updates. We recommend to keep this enabled.",
"Available channels: RELEASE, BETA, ALPHA"
})
public static final ConfigOption<Boolean> ENABLE_UPDATE_CHACKER = new ConfigOption<>("updater.enabled", true);
public static final ConfigOption<Boolean> ENABLE_UPDATE_CHECKER = new ConfigOption<>("updater.enabled", true);
public static final ConfigOption<Boolean> ENABLE_CHANGELOG = new ConfigOption<>("updater.changelog", true);
public static final ConfigOption<String> UPDATER_CHANNEL = new ConfigOption<>("updater.channel", "BETA");

View file

@ -103,7 +103,7 @@ public class MarriageCore extends MarriageBase {
@Register(name = "updater", type = Type.ENABLE, priority = 9)
public void loadUpdater() {
UpdaterFactory factory = new UpdaterFactory(plugin, "com.lenis0012.bukkit.marriage2.libs.updater");
this.updater = factory.newUpdater(plugin.getPluginFile(), Settings.ENABLE_UPDATE_CHACKER.value());
this.updater = factory.newUpdater(plugin.getPluginFile(), Settings.ENABLE_UPDATE_CHECKER.value());
updater.setChannel(ReleaseType.valueOf(Settings.UPDATER_CHANNEL.value().toUpperCase()));
}

View file

@ -38,7 +38,7 @@ public class MarriagePlayer implements MPlayer {
this.lastLogout = data.getLong("lastlogin");
}
this.lastLogin = System.currentTimeMillis();
this.requests = new Cooldown<>(Settings.REQUEST_EXPRY.value(), TimeUnit.SECONDS);
this.requests = new Cooldown<>(Settings.REQUEST_EXPIRY.value(), TimeUnit.SECONDS);
}
public void addMarriage(MarriageData data) {