grahamedgecombe / lightstone

An open-source implementation of the Minecraft server software.
http://grahamedgecombe.com/projects/lightstone
MIT License
73 stars 26 forks source link

Permissions #20

Open Joe0 opened 13 years ago

Joe0 commented 13 years ago

How should permissions be done? Should it be implemented like the official server, or something like one of the Bukkit plugins?

grahamedgecombe commented 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.

Joe0 commented 13 years ago

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).

CruzBishop commented 13 years ago

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.