Cuberite Forum
Permissions - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Permissions (/thread-2206.html)



Permissions - Bobstergaming - 11-14-2015

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?


RE: Permissions - NiLSPACE - 11-15-2015

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


RE: Permissions - sphinxc0re - 11-16-2015

*yet Wink


RE: Permissions - Zee1234 - 11-16-2015

(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;