Wiki 9Minecraft Wiki 9Minecraft

Creating Regions, Managing Owners and Members, and Changing Flags via Script

Building Full-Height Regions and Managing Owners or Members

Instead of setting up every player claim or event zone by hand, Hyper Guard Plugin lets your HyperScript files create regions, remove regions, and assign owners or members automatically.

1. Define a protected zone between two selected corner coordinates using create guard region "plot" from <corner> to <corner> full height. Including full height extends protection vertically from bottom to top, preventing players from tunneling underneath or pillaring above a claim.

2. Give a player ownership of the newly created space with add player to guard region "plot" as owner, or add trusted teammates as members when they should build without full ownership rights.

3. Whenever someone leaves a team or gives up a plot, run remove player from guard region "plot" inside your script to take that player out of the region cleanly.

Reading and Switching Region Flags Such as PvP

You can also read and change WorldGuard region rules dynamically during live gameplay, which is perfect for timed combat arenas, peaceful building hours, or seasonal events. Use set guard flag "pvp" of region "arena" to false to switch PvP off inside an arena between matches, then toggle the flag back on when a tournament round begins. A common mistake when scripting flags or ownership is forgetting to create the region first or mistyping the region name; check guard regions of player while standing on site to confirm your region name exists before updating flags or membership. Pair flag changes with players in guard region "arena" to notify everyone inside right before combat rules switch.

Join 9Minecraft News & Guides