forked from rlf/uSkyBlock
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
enhancementNew feature or requestNew feature or request
Description
This is a Feature Request
A challenge type where the player needs a certain permission to complete the challenge.
This would allow for easy integration with other plugins and would allow to create unique challenges easily.
example configuration in challenges.yml:
cobblestonegenerator:
name: '&7Cobble Stone Generator'
description: Mine from a cobblestone generator.
type: PERMISSION # <----------
permission: "uskyblock.challenge.example.perm" # <----------
# 'cobblestonegenerator.requiredItems' is gone
displayItem: COBBLESTONE
lockedDisplayItem: GRAY_STAINED_GLASS_PANE
resetInHours: 12
reward:
text: 3 leather, 20% chance to get a book
items:
- LEATHER:3
- '{p=0.2}BOOK:1'
currency: 10
xp: 10
commands:
- op:effect give {player} regeneration
repeatReward:
text: 1 leather, 10% chance to get a book
items:
- LEATHER:1
- '{p=0.1}BOOK:1'
currency: 5
xp: 5I will try to do actually do it myself
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request