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 configurable requirements for blocks #342

Merged
merged 17 commits into from
Feb 20, 2025
Merged

Conversation

Fly1337
Copy link
Contributor

@Fly1337 Fly1337 commented Dec 21, 2024

In this PR, I added AuraSkillsLevelRestricts functionality to the main plugin.

See this config example:

requirement:
  blocks:
    enabled: true
    list:
    - material: diamond_ore
      allow_place: true
      allow_break: false
      requirements:
      - type: skill_level
        skill: farming
        level: 10
        message: 'You must be Farming 10'
      - type: permission
        permission: some.permission
        message: ''
      - type: excluded_world
        world: world
        message: ''
      - type: stat
        stat: strength
        value: 10
        message: 'You must have at least 10 strength'

It essentially allows setting requirements for blocks to be broken as well as placed, with the options for: skill levels, permissions, excluded worlds and stat levels

Copy link
Owner

@Archy-X Archy-X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial review before testing requesting some minor changes

@Fly1337 Fly1337 requested a review from Archy-X December 21, 2024 20:15
@Archy-X Archy-X changed the base branch from master to 2.3 February 20, 2025 18:51
@Archy-X Archy-X changed the title Adding requirements for blocks (AuraSkillsLevelRestrict) Add configurable requirements for blocks Feb 20, 2025
@Archy-X Archy-X merged commit 357b852 into Archy-X:2.3 Feb 20, 2025
Archy-X pushed a commit that referenced this pull request Mar 4, 2025
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.

2 participants