Max Players (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.3, 2.7 (modify max real players)

Syntax

[the] [(real|default)|(fake|shown|displayed)] max[imum] player[s] [count|amount|number|size]

Description

The count of max players. This can be changed in a <a href='#server_list_ping'>server list ping</a> event only. 'real max players' returns the real count of max players of the server and can be modified on Paper 1.16 or later.

Examples

on server list ping:
	set the max players count to (online players count + 1)

View source