This page explains the configuration options for the Avatar Cache system in STN Studios plugins.
The configuration file is located at plugins/DeluxeAnnounce/avatarCache.yml.

Note: After modifying this file, run
/acs clearcachein the server console or in-game to apply the changes.
EXPIRATION-MINUTES: 30
MAXIMUM-SIZE: 1000
CALL-TIMEOUT (Integer, seconds, default: 3)
Maximum time for an HTTP request to complete.
CONNECT-TIMEOUT (Integer, seconds, default: 2)
Maximum time to establish a connection with the avatar server.
READ-TIMEOUT (Integer, seconds, default: 2)
Maximum time to wait for a response after connecting.
Determines the maximum number of avatar files allowed in the downloaded folder before cleanup occurs.
⚠️ Details:
FILE-LIMIT-IN-FOLDER: 300
Preloads all avatars in the images and downloaded folders into memory asynchronously when the plugin starts.
✅ Recommendation: Leave this as true for better performance and faster avatar display.
⚠️ Details:
This is linked to FILE-LIMIT-IN-FOLDER: only the images within the allowed limit are preloaded.
Preloading ensures avatars are available immediately without waiting for them to download during gameplay.
Does not block the server thread, as it runs asynchronously.
PRELOAD-THE-IMAGES: true
If true, avatars will be re-downloaded from the web even if they are already cached.
⚠️ Recommendation: Leave this as false (default).
true → Forces the avatar to be downloaded every time, regardless of whether it is already in the cache.
true may duplicate events when players join the server because Deluxe Announce triggers its own avatar event.SkinApplyEvent when a player joins, which can further duplicate actions and increase server load.false → The avatar will only be downloaded if it is not present in the cache.
Note: After changing this value in the configuration, run
/acs clearcacheto apply changes immediately.
FORCE-RE-DOWNLOAD: false
If true, avatars are re-downloaded specifically when the /skin command is executed, regardless of cache.
✅ Recommendation: Leave this as true so that when a player changes their skin using the command, the new skin is downloaded immediately and displayed correctly.
RE-DOWNLOAD-THE-IMAGE-WHEN-USING-THE-SKIN-COMMAND: true
avatarCache.yml file./acs clearcache to reload the cache and apply changes.⚠️ Failing to run
/acs clearcachemay prevent changes from taking effect.