Blockland Forums > Modification Help
Flexible permission system
(1/5) > >>
DontCare4Free:
What?
Allows the server admin to create custom roles which have permissions and single-inheritance. Players are then assigned to a role (there is a default role). Inspired by the various permission systems for Bukkit.
Permissions are also assigned a default value using the old admin-based system (everyone, admins, SAs, host, nobody).

Checking for a permission looks like this:

--- Code: ---%cl.hasPermission("permission.name");

--- End code ---
The permission name should generally look somewhat like "add-on.category.permission". Any consuming mods don't have to care about roles.

Why?
This both removes the need for mods such as the various "Moderator" mods, the need for free admin servers (simply give the default group the desired permissions, such as, for example, teleporting), mods restricting who can build at all, and also the various mods intended for limiting which admin levels have access to what, while still being much more flexible.

The current state
All the back-end code is currently done, but there is no admin UI. Also a few core functions have been packaged to use the new system for testing purposes, more should be done later.
brickybob:
I'll be sure to "test" this.
@crash();
DontCare4Free:

--- Quote from: brickybob on January 28, 2012, 06:07:36 PM ---I'll be sure to "test" this.
@crash();

--- End quote ---
That was another mod that I had installed to not have to alt-tab all the time, not part of this.
otto-san:
oh hey neat

i'd like this
DontCare4Free:

--- Quote from: otto-san on January 28, 2012, 06:14:37 PM ---oh hey neat

i'd like this

--- End quote ---
It's already done, I just need someone to do the GUI. Join my server for a demo.
Navigation
Message Index
Next page

Go to full version