My friend and I are writing an C# IRC Bot that will allow users to extend it s capabilities via plugins. We need it so that each command will be able to have its own permissions. So that only a user on a specific level or above could execute the command. We had a hard time deciding how to do this.
The permissions system would be 1-10. 1 being the least privileged and 10 being the most. Each user would be assigned a 1-10 permission. Each command would also assign itself a required permission level. My question essentially is: How could I make a per-command permission system with plugins being able to have multiple commands within them.
I was hoping the good people of Stack Overflow could help me. Please bear with me as this is the first question I ve asked here. Any help will be greatly appreciated! Thanks!