Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WorldGuard Region Templates #64

Open
nomadjimbob opened this issue Jan 13, 2024 · 0 comments
Open

WorldGuard Region Templates #64

nomadjimbob opened this issue Jan 13, 2024 · 0 comments
Labels
help wanted Community assistance requested, PRs welcome. priority: normal This issue is an obvious bug or problem that does not majorly hinder gameplay or development. type: feature New feature or request
Milestone

Comments

@nomadjimbob
Copy link
Member

A region template feature would be an advantage and save running multiple commands each time.

For example, a town region would have several region flags set such as a title/subtitle/block placing?/etc, arenas would also be similar but allow PVP, workshops are again similar but would also add 2 groups and _active, adding the _active to the member list of the region. When removing the region, these 2 groups would need to be deleted.

This could be done using a new config setup?

region_templates:
    town:
        flags:
            title: "&e{title}"
    workshop:
        flags:
            title: "&4{title}"
            subtitle: "&4Workshop region"
        commands:
            create:
            - lp addgroup {id}
            - lp addgroup {id}_active
            - rg addmember {id} -w {world} g:{id}_active
            remove:
            - lp deletegroup {id}
            - lp deletegroup {id}_active

{id} = Region ID
{title} = Region ID prettied. Text before and including the first _ character are ignored
{world} = The regions world name

@nomadjimbob nomadjimbob added type: feature New feature or request help wanted Community assistance requested, PRs welcome. priority: normal This issue is an obvious bug or problem that does not majorly hinder gameplay or development. labels Jan 13, 2024
@nomadjimbob nomadjimbob added this to the 1.5 milestone Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Community assistance requested, PRs welcome. priority: normal This issue is an obvious bug or problem that does not majorly hinder gameplay or development. type: feature New feature or request
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant