Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.

Permission Based Achievement Eligibility #29

Open
Mohron opened this issue Jun 11, 2017 · 2 comments
Open

Permission Based Achievement Eligibility #29

Mohron opened this issue Jun 11, 2017 · 2 comments

Comments

@Mohron
Copy link

Mohron commented Jun 11, 2017

I would like to either have criteria requiring a player to be in a specific permission group or limit access to an achievement from being completed/awarded by permission. Not sure how to best integrate this with the platform as permissions in Sponge currently do not have events and progress of ranks/stages in games is often permanent so the fact that your data is purged over time could make this hard to achieve.

@RobertHerhold
Copy link
Member

So the easiest way to do this would just to make each permission a metric and use that as a criterion in the achievement. This is a bit tricky since, as you said, there are currently no events for permission changes (see SpongePowered/SpongeAPI#1402). Ideally, we would just wait for that to be implemented so we can have a clean solution.

However, since that's likely not going to happen in the near future, I think you'll just have to use our API (see our event creation documentation) to adjust the permission metrics as they are changed.

If I may ask, how are you setting player permissions? Is it just manually w/ a command, or some other way?

@Mohron
Copy link
Author

Mohron commented Jun 13, 2017

Our first rank is given (manually atm) when the player joins our Discord. After that, I have been intending on using BadgeUp to make a more compelling system than just playtime.

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

No branches or pull requests

2 participants