Region Welcome
A common server pattern: when a player walks into spawn, show a welcome screen with quick-access buttons (rules, hub, kit). The activator here is regionJoin from WorldGuard, not a command - the menu opens itself when the player crosses the region boundary.
What it teaches
Section titled “What it teaches”- The
regionJoinactivator (and its siblingregionLeave) - WorldGuard integration via region names
- Combining a passive welcome with quick-action tiles that link to other menus
How it works
Section titled “How it works”The activator block names one or more region IDs:
activators { regionJoin: ["spawn"]}When the player enters the spawn region (defined in WorldGuard), the menu opens for them. Multiple region IDs can be listed; the menu opens whenever the player enters any of them.
The menu has no money rules, no buy actions - it’s a glorified bulletin board. The three quick-link tiles in the middle row each call openMenu to navigate the player to another example.
Region setup on the server
Section titled “Region setup on the server”This example assumes a WorldGuard region named spawn exists. Define it with:
/rg define spawnThen put this menu in plugins/AbstractMenus/menus/example/world-integrations/01-region-welcome/menu.conf, and /am reload. Walking into the region triggers the menu.
Related activators
Section titled “Related activators”regionLeave- same shape, fires when the player leaves the region. Useful for “say goodbye” or “warn before PvP” use cases.clickEntity/clickNPC/clickBlock- other “the world triggers the menu” activators. See Activators for the full list.
Try it
Section titled “Try it”After installing the example pack:
- Install WorldGuard.
- Create a region named
spawnwith/rg define spawn. - Drop the bundle into
plugins/AbstractMenus/menus/example/. /am reload.- Walk into the region.