Extensible permissions for paint
Ephemeris opened this issue ยท 6 comments
Add new permission sub-groups to the paintbrush tool, to allow finer-tuning of who is allowed to do what.
Partially to prevent low-ranked users from using the paintbrush as an instapick (eg. painting grass with torch (2->50).
Example:
..paint:
....rangeDefault: 0
....rangeCrouch: 25
....onlyAllow: []
....stopCopy: [7, 46, 52, 75, 95, 97, 119, 122]
....stopOverwrite: [1, 2, 3, 7, 8, 9, 10, 11, 52, 90, 119]
....vip:
......onlyAllow: []
......stopCopy: [7, 97]
......stopOverwrite: [7, 52]
....admin:
......onlyAllow: []
......stopCopy: []
......stopOverwrite: []
After further review, it would be wonderful to also have these extensible permissions in pickhax.
I'm working on designing this, but when it does come, it will apply to all tools that have the "global:" options.
Wow, sorry for such a long silence, it took a lot of thinking to design this properly. It is still complicated, but is fully functional (for the Sledge tool). I'll port the other tools over soon, and then post a build here that you can test the functionality with.
If you want to get an idea of how it works, feel free to read through https://github.com/Peter200lx/ToolBelt/blob/master/src/help/Ranks.txt
Ok, this should now all be working. I've tested on my own, but I think it is now ready for others to use. Please feel free to ask questions about configuring it, as I know the setup is complicated. Below is a build of the above commit. I have a couple more issues to resolve before another official release, but this should be a .... An issue was found with this build, look at the next comment for the proper build
Oops, commit bad2602 merely loaded the ranked lists for all tools instead of actually checking the ranked lists. This has now been resolved. A new build is now in dropbox:
http://dl.dropbox.com/u/71355/ToolBelt_44ecdcc.jar