Addes permission system

Working, but needs some commands to make it more usefull