Recent Discussions

GUIPlus Trigger Menu With Selector

Unanswered
Crème D’Argent posted this in #questions
Messages179 messages
Views0 views
Crème D’ArgentOP
Is there any way to trigger a GUIPlus menu with a selector or radius? I'm trying to set up a spawn selection menu, and the wiki doesn't have very much info...
with a selector or radius
Do you mean automatically pop up a menu when a player enters a specific area?

I don't know the plugin, but there are ways to trigger things in certain areas.
WorldGuard and the [WorldGuard Extra Flags](https://www.spigotmc.org/resources/worldguard-extra-flags.4823/) addon plugin can do command-on-enter and command-on-exit.

You create a worldguard region and then set those flags, and set the command to be run to /gui openfor <player> <name>.
Or just use a command block lmao
@PM_ME_YOUR_REPO Or just use a command block lmao
Crème D’ArgentOP
guiplus has bad commands, is the issue
command block doesn't require adding WG, but is less precise.
Crème D’ArgentOP
you can only trigger the menu for specific players through commands
@Crème D’Argent guiplus has bad commands, is the issue
/gui openfor <player> <name> should work though?

/rg flag region-name console-command-on-entry "/gui openfor %username% your.gui.name.here"
that exact command should work
Crème D’ArgentOP
is that worldguard, or...?
yes, that's the command to set the "command on entry" flag for a worldguard region.
Crème D’ArgentOP
honestly, also might be an issue. currently using lands.
the way we set this up is with a black box underneath a lands claim
So you go to the place you want this to happen, create a 3D volume region by defining the opposite corners, and then run that command to set that flag on the region. Then, any time a player walks into it, it will run that command.
Crème D’ArgentOP
hm
i see
so no conflicts with lands, then?
There shouldn't be any conflicts. WorldGuard isn't a land claiming plugin, it's just a generic "do stuff to this volume I defined" plugin.
It's an admin tool, not a player tool.
Crème D’ArgentOP
i see
i'll do some testing, then
Yeah, I think this is likely going to be your best option.
WorldGuard is one of those immortal plugins. It's existed since like 2011 or something. It's just one of the absolutely quintessential administration plugins that folks use for anything involving a region of space in the game. People use it to create protected zones that no player can damage, or safe areas where PvP is disabled, and even stuff like this.
Anything admin-built in a specific area = WorldGuard
Loading...