Load Server Icon (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.3

Syntax

load [the] server icon (from|of) [the] [image] [file] %string%

Description

Loads server icons from the given files. You can get the loaded icon using the <a href='#ExprLastLoadedServerIcon'>last loaded server icon</a> expression. Please note that the image must be 64x64 and the file path starts from the server folder.

Examples

on load:
	clear {server-icons::*}
	loop 5 times:
		load server icon from file "icons/%loop-number%.png"
		add the last loaded server icon to {server-icons::*}

on server list ping:
	set the icon to a random server icon out of {server-icons::*}

View source