Package com.notoriousdev.yamlconfig.configuration.file

Examples of com.notoriousdev.yamlconfig.configuration.file.FileConfiguration


    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!");
    }
View Full Code Here

TOP

Related Classes of com.notoriousdev.yamlconfig.configuration.file.FileConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.