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

View File

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