public static void loadResources()
    {
        log.info("loading resources...");

        // load servericon
        final String iconPath = "server-icon.png";
        final File serverIcon = new File(iconPath);
        if (!serverIcon.exists())
        {
            log.warning("icon file '" + iconPath + "' not found");
            icon = null;
        }
        else
        {
            final String base64 = FileHelper.decodeBase64(serverIcon);
            if (base64 == null || base64.isEmpty())
            {
                log.warning("something went wrong while decoding '" + iconPath + "'");
                icon = null;
            }
            else
            {
                icon = "data:image/png;base64," + base64;
                log.info("icon file '" + iconPath + "' successfully loaded");
            }
        }

        // load version
        verText = parseColors(
            getFileString("version.txt")
        );
        // load motd
        motd = parseColors(
            getFileString("motd.txt")
        );
        // kick message
        kickMessage = parseColors(
            getFileString("kickmessage.txt")
        );
        // players
        {
            final String str = getFileString("players.txt");
            if(str != null)
            {
                final List<String> list = new ArrayList<String>();
                for(final String player : str.replace("\r", ",").replace("\n", ",").split(","))
                {
                    if(player == null || player.isEmpty())
                        continue;
                    list.add(parseColors(player));
                }
                players = list.toArray(new String[0]);
            }
        }
        // maxplayers
        {
            final String str = getFileString("maxplayers.txt");
            try
            {
                maxPlayers = (str == null ? null : new Integer(Integer.parseInt(str)));
            }
            catch (NumberFormatException e)
            {
                log.warning("invalid number in 'maxplayers.txt'");
                maxPlayers = null;
            }
        }

    }