Skip to content

Favicons

Minecrell edited this page Jul 11, 2014 · 4 revisions

As of ServerListPlus v3.2, you can add multiple (randomly chosen) favicons to you server status. The plugin can load them from different sources, for example files, folders or URLs. Here is a small example:

As you can see, Notch's head is displayed there. Personalization of favicons is also possible if you use an avatar service like Minotar.

Configuration

Before you start configuring your favicons, you should make sure you have a server-icon.png in your server root folder. It will be used when loading the favicons from the specified source fails, so make sure to have one if you don't want it to be empty then.

Setting up the favicons is not really different from anything else in the configuration. The favicons are configured in the Favicon section. There, you now have to choose where you want to load the favicons from. These favicon sources are supported:

  • Files - Load the directly from their files names. You can use absolute or relative paths, or just the file name if you put them into the plugin folder.
  • Folders - Search for favicons in the specified folder. If you also want to search in sub folders you need to enable RecursiveFolderSearch in the plugin configuration.
  • URLs - Load the favicons from somewhere in the Internet with an specified URL.
  • Encoded - Load the favicons directly from the configuration encoded using Base64.

Of course you can add multiple sources so one favicon is randomly chosen. If you want to personalize your favicon you can use the already everywhere else available placeholder %player% inside the source.

Examples

Default:
  Favicon:
    # Load the favicon from the 'favicon.png' file from the plugin folder.
    Files:
    - favicon.png
    # Use all favicons in the 'favicons' folder (inside the plugin folder).
    Folders:
    - favicons

Personalized

Personalized:
  Favicon:
    # You can also insert another avatar service here, just an example.
    URLs:
    - https://minotar.net/avatar/%player%/64.png
Clone this wiki locally