public String clearTextual(String text){
  if (text == null || text.isEmpty()) {
    return "Usage: /clearSetting <setting>";
  }
  String[] split=text.split(" ");
  String setting=split[0];
  if (isBooleanSetting(setting)) {
    return "Boolean settings can't be cleared.";
  }
  if (isLongSetting(setting)) {
    return "Numeric settings can't be cleared.";
  }
  if (isStringSetting(setting)) {
    setString(setting,"");
    return "Setting '" + setting + "' set to empty string.";
  }
  return settingInvalidMessage(setting);
}

public String clearTextual ( String text ) { if ( text == null || text . isEmpty ( ) ) { return "Usage: /clearSetting <setting>" ; } String [ ] split = text . split ( " " ) ; String setting = split [ 0 ] ; if ( isBooleanSetting ( setting ) ) { return "Boolean settings can't be cleared." ; } if ( isLongSetting ( setting ) ) { return "Numeric settings can't be cleared." ; } if ( isStringSetting ( setting ) ) { setString ( setting , "" ) ; return "Setting '" + setting + "' set to empty string." ; } return settingInvalidMessage ( setting ) ; }
sets the setting with the specified name to an empty value . this is only possible with strings .
