Add stuff from NadaPermissions

Obviously things will be bad, I had to rush this thanks to @RainoBoy97.
Lots of stuff was removed due to private code, sorry in advanced for any
inconveniences.