Open Joe0 opened 13 years ago
I'm not really sure how the Bukkit system works, having never looked into it, but I think something quite flexible like the way they were developed in the OpenCraft ACM fork would be quite good. It had a number of permissions that could be given out, and you could assign those permissions to groups or individual users in a config file.
That's exactly how the plugins for Bukkit do it.
Essentially, each command, or special 'operation' has a permission that goes along with it (provided the developer of the plugin isn't lazy).
Just had a go at writing up a system that Bukkit's permissions system seems to use. I used class names from my old projects (LivingEntity, Player) as examples.
https://gist.github.com/1020218
It should compile; I'm just not sure about the list.
How should permissions be done? Should it be implemented like the official server, or something like one of the Bukkit plugins?