Permissions
#1
Hello again!

I am interesting in using permissions, and on my prison server, I want people to be VIP, VIP+ etc.
This would be very easy to do by using ranks, but I already use ranks for prison level (a, b, c, etc) I had a look on the API docs, and found a beautiful list of permissions, everything I could ever want except for AddPermissionToPlayer.

Is there any other way I can add a specific permission to a specific player?

Also if I add a permission manually to a player, and change their rank, do they lose their original permission?
Reply
Thanks given by:
#2
I'm afraid player-specific ranks aren't implemented.

I believe if we would add it and you change someone's rank it should still contain their player-specific permissions though.
The SQLTable for it would probably look somewhat like this:
UUID | Permission
Reply
Thanks given by: Bobstergaming
#3
*yet Wink
Reply
Thanks given by:
#4
(11-15-2015, 04:49 AM)NiLSPACE Wrote: The SQLTable for it would probably look somewhat like this:
UUID | Permission

Wouldn't it make more sense to have 2 tables, one for player reference (assuming you don't have this already) and one permissions? Something like

ID | UUID | Playername
and
ID | UserID | Permission | Things That Can Be Expanded Later Like Per World

then the SQL would be like
Code:
SELECT playerperms.Permission,playerperms.Things FROM playerperms INNER JOIN playerIDs ON playerperms.UserID = playerIDs.ID;
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)