fix: Double print error message for getting config value

This commit is contained in:
Ben Woo 2023-03-31 23:10:46 +08:00
parent 16e81ec141
commit fac79e0780
No known key found for this signature in database
GPG Key ID: FB2A3645536E12C8

View File

@ -58,7 +58,7 @@ public class ConfigCommand extends MultiverseCommand {
private void showConfigValue(MVCommandIssuer issuer, String name) {
config.getProperty(name)
.onSuccess(value -> issuer.sendMessage(name + "is currently set to " + value))
.onFailure(e -> issuer.sendMessage("Unable to get " + name + ": " + e.getMessage()));
.onFailure(e -> issuer.sendMessage(e.getMessage()));
}
private void updateConfigValue(MVCommandIssuer issuer, String name, Object value) {