-
Notifications
You must be signed in to change notification settings - Fork 514
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
[Suggestion] Bypass the purge with permission #674
Comments
Would a list of names in the config also be a possibility? I think it would be easier to implement. |
hmm not bad, but I think the permission is would better because the player names can changed |
+1 permission ;) |
but If u can create it for usernames, that would be nice also:) |
One question I have for this is how many perm managers support this. |
almost every perm manager has a deprecated pre uuid method |
In that case - sounds good! Can I have until the weekend to do some refactoring on the perms manager? It's one huge block of code that needs to be structured a little. Seems like I can't interest anyone into refactoring it :P |
so what happend? :D |
Lovely, @Gnat008! From a quick glance, it seems you probably need an additional service class (as you mention) but probably the PurgeTask class needs to stay. It schedules itself with the BukkitScheduler, and we don't want a service class itself to start scheduling itself. Are you familiar with how the PurgeTask works? The trick behind it is it handles a certain portion of players in an interval, to avoid overloading the server's resources. |
Yeah, I noticed that. Pretty nice, really. |
Great work @Gnat008, we're one feature richer and you even rid us of some technical debt in the process :) 👍 I'm especially impressed that you took the time to implement the offline permission lookup for each handler! A few q's about the permissions:
The purge process:
Finally, just a remark: we don't support FlatFile anymore so that logic in there will never come into play. When the |
Oh, one last thing—call me pedantic, but you created It will return |
With the permissions, absolutely agreed on both. I just wasn't sure what to name the method otherwise (naming.. heh). Also checking the default permission is a good thing and I probably should have done that. I'm also unhappy with the duplicate logic for the same reason. If that could be made better, it should. I implemented the FlatFile thing as well since it implements the interface, and I guess it seemed like a good idea at the time? Probably just made more work for myself doing it, but oh well. lol |
@Gnat008 I tested the changes and pushed them to master. If you think this issue can be marked as "please verify," please do so. If you no longer need the 674 branch it can be removed. Thanks! |
@rereat :) |
@Gnat008 what is the permission to bypass from purge? :) |
@rereat authme.bypasspurge |
thanks, I am checking it :) |
@rereat so? ;) |
its just purge the authme database right? I wanna purge this folders :) |
let's give it a try ;) |
@rereat Could you run it successfully? |
Does not delete the default world's player data :/ |
Could I ask you to open a new issue for this, please? Then we can keep this issue title/number for "implement bypass permission" and we'll have a new issue for "purge does not delete player data." I'm assuming you mean the .dat files of a player are not being deleted? |
Open a new issue, please ;) |
I think its would be nice if I can add a permission to my staff group whos accounts never purged then :)
The text was updated successfully, but these errors were encountered: