Merge branch 'spelling-fix' into 'master'
Small spelling fix quite -> quiet See merge request !2
This commit is contained in:
commit
cd5151743b
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user