Compatibility
Minecraft: Java Edition
1.21.x
Platforms
Tags
Creators
Details
πΊοΈ 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.


