Reacting When Players Enter or Leave a WorldGuard Region
Hyper Guard Plugin connects WorldGuard region events straight into HyperScript, letting server admins welcome newcomers at spawn or warn fighters crossing into dangerous zones. Every phrase in the plugin includes the word guard, so your WorldGuard triggers work cleanly side by side with the simple regions HyperScript already has.
1. Add an entry trigger using on guard region enter "spawn": to run actions the moment a player walks inside, such as: send title "&aSpawn" with subtitle "&7You are safe here" to player
2. Pair it with a matching leave trigger using on guard region leave "spawn": so players know immediately when protection ends, for example: send action bar "&cYou left the safe zone" to player
3. Replace "spawn" with the exact WorldGuard region name you want to monitor, making sure spelling matches your server's region list.
Checking Active Regions and Listing Players Inside an Area
Beyond entry and exit alerts, you can inspect where players are standing at any time inside your scripts. Use guard regions of player to list every WorldGuard region a player is currently standing in, which is useful for status commands, overlapping zone checks, or debugging why a greeting fired. When running arena matches or group events, use players in guard region "arena" to pull the full list of players currently inside that region so your script can announce countdowns, count participants, or check whether an arena is empty before starting the next round. Keeping the word guard in every phrase guarantees HyperScript always targets WorldGuard regions instead of simple regions.