1
0
forked from xjboss/KCauldronX

Small spelling fix quite -> quiet

This commit is contained in:
ChrisLane 2015-09-10 00:21:43 +02:00
parent b2e14cb247
commit 8cda6fb6c4
2 changed files with 8 additions and 8 deletions

View File

@ -19,8 +19,8 @@ public class KCauldronConfig extends ConfigBase {
"updatechecker.autoinstall", false, "Install updates without confirming");
public BoolSetting updatecheckerAutorestart = new BoolSetting(this,
"updatechecker.autorestart", false, "Restart server after updating without confirming (set restart script in spigot.yml)");
public BoolSetting updatecheckerQuite = new BoolSetting(this,
"updatechecker.quite", false, "Print less info during update");
public BoolSetting updatecheckerQuiet = new BoolSetting(this,
"updatechecker.quiet", false, "Print less info during update");
public BoolSetting loggingMaterialInjection = new BoolSetting(this,
"logging.materialInjection", false, "Log material injection event");
@ -37,7 +37,7 @@ public class KCauldronConfig extends ConfigBase {
register(updatecheckerSymlinks);
register(updatecheckerAutoinstall);
register(updatecheckerAutorestart);
register(updatecheckerQuite);
register(updatecheckerQuiet);
register(loggingMaterialInjection);
register(loggingClientModList);
register(commonAllowNetherPortal);

View File

@ -94,7 +94,7 @@ public class KCauldronUpdater implements Runnable, IVersionCheckCallback {
@Override
public void run() {
if (!MinecraftServer.kcauldronConfig.updatecheckerQuite.getValue()) {
if (!MinecraftServer.kcauldronConfig.updatecheckerQuiet.getValue()) {
mSender.sendMessage(ChatColor.DARK_PURPLE
+ "Retrieving latest KBootstrap version...");
}
@ -108,10 +108,10 @@ public class KCauldronUpdater implements Runnable, IVersionCheckCallback {
@Override
public void newVersion(String kbootstrapVersion) {
boolean quite = MinecraftServer.kcauldronConfig.updatecheckerQuite
boolean quiet = MinecraftServer.kcauldronConfig.updatecheckerQuiet
.getValue();
try {
if (!quite) {
if (!quiet) {
mSender.sendMessage(ChatColor.DARK_PURPLE
+ "Downloading KBootstrap " + kbootstrapVersion + "...");
}
@ -120,7 +120,7 @@ public class KCauldronUpdater implements Runnable, IVersionCheckCallback {
download(
"https://api.prok.pw/repo/blob/pw.prok/KBootstrap/latest/app",
kbootstrap);
if (!quite) {
if (!quiet) {
mSender.sendMessage(ChatColor.DARK_PURPLE
+ "Installing KCauldron " + mVersion
+ " via KBootstrap " + kbootstrapVersion + "...");
@ -159,7 +159,7 @@ public class KCauldronUpdater implements Runnable, IVersionCheckCallback {
+ "Failed to install KCauldron " + mVersion);
}
} catch (Exception e) {
if (!quite) {
if (!quiet) {
e.printStackTrace();
}
if (mSender != null) {