Free / Max / Total Memory (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.8.0
Syntax
[the] [server] (free|max[imum]|total) (memory|ram)Description
The free, max or total memory of the server in Megabytes.
Examples
while player is online:
send action bar "Memory left: %free memory%/%max memory%MB" to player
wait 5 ticks