private Properties properties;
private int chatSocketPort;
public void load() {
YamlConfig conf = new YamlConfig(new File("").getAbsoluteFile(), "config.yml");
FileConfiguration config = conf.getConfig();
setBotNickname(config.getString("bot-nickname"));
setBotUsername(config.getString("bot-username"));
setBotIdent(config.getString("bot-ident"));
setBotPassword(config.getString("bot-password"));
setCtcpFinger(config.getString("ctcp-finger-reply"));
setCtcpVersion(config.getString("ctcp-version-reply"));
setTrigger(config.getString("bot-trigger"));
setPermissionDenied(config.getString("permission-denied"));
setAutoNickChange(config.getBoolean("auto-nickchange"));
setAutoReconnectServer(config.getBoolean("auto-reconnect"));
setAutoRejoinChannel(config.getBoolean("auto-rejoin"));
setAutoAcceptInvite(config.getBoolean("auto-accept-invite"));
setChannels(config.getStringList("channels"));
setLoggedChannels(config.getStringList("channels-log"));
setDebug(config.getBoolean("debug"));
setServerHostame(config.getString("server-hostname"));
setServerPort(config.getString("server-port"));
setUseSSL(config.getBoolean("use-ssl"));
setVerifySSL(config.getBoolean("verify-ssl"));
setServerPassword(config.getString("server-password"));
setEnableChatSocket(config.getBoolean("enable-chat-socket"));
setChatSocketPort(config.getInt("chat-socket-port"));
System.out.println("Config loaded!");
}