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

Add feature to limit flag setting. #88

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jhooc77
Copy link

@jhooc77 jhooc77 commented Jan 24, 2022

exemple part of flaggroups.yml

    1:
      setting: 'remove'
      editable: true
      flag: greeting
      editPermission: ""
      guidescription:
        - '&2Sets a message that will be'
        - '&2shown to players that enter'
        - '&2the region'
      applyto: []
      presetContents:
        0:
          setting: 'Hello! This is my land.'
          guidescription:
            - "setting greeting message to 'Hello! This is my land.'"
        1:
          setting: 'Hello! This is my house.'
          guidescription:
            - "setting greeting message to 'Hello! This is my house.'"
        2:
          setting: 'Hello! This is my test message.'
          permission: permission.test
          guidescription:
            - "setting greeting message to 'Hello! This is my test message.'"

It's a feature that limits the flag setting or can only be used by people having permission.
If you do not create presetContents or set it as an empty list, It can freely set it as before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant