02-27-2017, 07:46 PM
in practice i would like to see the error redirect to anything with a classic saying of this page is restricted etc admins have been alerted just the generic stop poking around threat. also it would be nice to user classed redirects eg regular users of permission level user redirect as normal. but users of permission level moderator redirect to the not created moderator account page that would have additional buttons and menus for the other functions that they have permission to i would like to see the main admin permission class redirect straight to the admin page... i just figured something out though with out the ability to set inheritance of permissions my per user class redirect wont work right i don't think. because as it is now say a moderator for example would have the permissions moderator and user where it should be set as moderator only because the permission moderator inherits all the perms from user and then some make sense.
i am pulling the inheritance reference from a java scrips plugin for mine craft called permessions ex or PEX for short https://dev.bukkit.org/projects/permissionsex
http://pastebin.com/m4ippcjn
this is my permissions file that i use on my server notice how each "rank" from default to owner has its inheritance
default is the lowest class player anyone who plays is auto added to this rank. then it splits from there it goes like so
donor1 inherits from default all the perms that they have plus the perms that donor1 has listed
donor2 inherits from donor1 but one command is removed and other commands are added
donor 3 inherits from donor 2 commands are removed others added
etc all the way to donor 5
the staff ranks follow the same pattern
helper inherits all default commands
mod inherits all helper commands
admin inherits from mod
headadmin inherits from admin
owner inherits from headadmin
but the catch is with the diferent rank ladders the staff are allowed to hold 2 ranks a donor rank and a staff rank but thats not what im after here just the inheritance for redirects or the ability to redirect different permission levels in side userspice
make sense
i am pulling the inheritance reference from a java scrips plugin for mine craft called permessions ex or PEX for short https://dev.bukkit.org/projects/permissionsex
http://pastebin.com/m4ippcjn
this is my permissions file that i use on my server notice how each "rank" from default to owner has its inheritance
default is the lowest class player anyone who plays is auto added to this rank. then it splits from there it goes like so
donor1 inherits from default all the perms that they have plus the perms that donor1 has listed
donor2 inherits from donor1 but one command is removed and other commands are added
donor 3 inherits from donor 2 commands are removed others added
etc all the way to donor 5
the staff ranks follow the same pattern
helper inherits all default commands
mod inherits all helper commands
admin inherits from mod
headadmin inherits from admin
owner inherits from headadmin
but the catch is with the diferent rank ladders the staff are allowed to hold 2 ranks a donor rank and a staff rank but thats not what im after here just the inheritance for redirects or the ability to redirect different permission levels in side userspice
make sense