WGPlayerCount

WGPlayerCount

Paper plugin that exposes PlaceholderAPI placeholders to count players inside WorldGuard regions.

57 downloads 1 followers

πŸ—ΊοΈ WGPlayerCount

Exposes PlaceholderAPI placeholders to count players inside WorldGuard regions in real time.


πŸ“¦ Requirements


🏷️ Placeholders

πŸ‘€ Single region

Returns the number of players inside the specified region.

%wgplayercount_<region>%
%wgplayercount_spawn%

πŸ‘₯ Multiple combined regions

Returns the total number of unique players across all regions. If a player is in two regions at once, they are only counted once.

%wgplayercount_<region1>+<region2>+...%
%wgplayercount_spawn+arena+lobby%

πŸ’‘ Region IDs are case-insensitive.


⚑ How it works

The plugin scans the position of all online players every second and stores the result in a cache. Placeholder calls simply read from that cache, without any extra computation.

Version Minecraft Loader Download

WGPlayerCount 1.0-SNAPSHOT

1.0-SNAPSHOT

1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11
paper
Download