Cuberite Forum

Full Version: [DONE] Groups and permissions refactor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
If you separate permission groups from the groups, there's nothing left in the groups. The prefix, postfix and color would be tied to the rank, not to a group.
I mean there would be 2 groups, the permission-group and the rank iteself. So you can list permission-groups instead of extending another rank, that was my point. I'm still confused because of the "Player:" thing... Wouldn't it be easier to just make 2 lists like so: http://pastebin.com/rqFL1AX6 ?
What you're calling groups will be ranks in the new system.

The "player <-> rank <-> permissiongroups[]" has nothing to do with the config files, it is how the relations will be represented inside MCS: each player will be assigned to a single rank, and each rank will have several permissiongroups assigned to it. Nothing more.

The actual configuration will be in a database, probably four tables:
PlayerRanks:
- PlayerUUID
- PlayerName
- RankName (links with a Ranks record)
Ranks:
- RankName
- Prefix, Postfix, etc.
PermissionGroups:
- GroupName
- RankName (links with a Ranks record)
PermissionItem:
- GroupName (links with a PermissionGroups record)
- Permission
Okay, i get it now, looking forward to it Smile But i still think there should be also commands to manage them...
Yes, those will need to be provided through Core, though.
I guess the most important question for a server admin is: is it okay to put the configuration into a DB, where it isn't really editable from the outside? You will need to use the in-game commands, the server console or the WebAdmin to edit the permissions and everything.
I think the WebAdmin alone should suffice for the configuration, but giving players ranks should be done in both WebAdmin and (in-game) commands.
I'd say a DB is fine, as long as the tools for editing are very good, and the database doesn't suddenly end up corrupted and unusable. (the main problems with database-based systems)
Yeah i think the WebAdmin would be okay too, command would be confusing for most Players. If you are an Admin/Owner of a Server you should definetly have acces to the WebAdmin. Using a database is the best solution too, because for those Server who are planning on doing multiple servers (like 90% of the Servers today) it would be easier to have access to the ranks from every single Server.
You can also manage DBs with outside software, so that's not that much of a problem IMO
Pages: 1 2 3 4 5 6