Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a default permission system and how do you use it?

Comments in 'Plugin Development' started by Dinokiller, Nov 17, 2013.

  1. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    I know PocketEssentials has it's own permission system but is there a default one to use if the server owner doesn't have PocketEssentials installed?
  2. geek
    Offline

    geek New Member

    Joined:
    Nov 15, 2013
    Posts:
    1
    Minecraft User:
    geek
    I watched throw source files and found nothing like this.
  3. alkurian
    Offline

    alkurian New Member

    Joined:
    Oct 15, 2013
    Posts:
    21
    Minecraft User:
    LaVerge
    nope. just /op /deop
    no permissions
  4. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    They should really add some sort of default permission system, even if it has to be really basic.
  5. Xfusionios
    Offline

    Xfusionios Active Member Plugin Developer

    Joined:
    Aug 24, 2013
    Posts:
    67
    Plugins:
    2
    Minecraft User:
    XFusionios
    You could always use PermissionPlus Plugin i suggest it and its very easy to use.
  6. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
  7. Xfusionios
    Offline

    Xfusionios Active Member Plugin Developer

    Joined:
    Aug 24, 2013
    Posts:
    67
    Plugins:
    2
    Minecraft User:
    XFusionios
  8. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    Ok, maybe I should ask @wies (like I usually do) or someone else (just to mix it up ;) ) to help me on this :)
  9. Xfusionios
    Offline

    Xfusionios Active Member Plugin Developer

    Joined:
    Aug 24, 2013
    Posts:
    67
    Plugins:
    2
    Minecraft User:
    XFusionios
    Yep everyone goes to wies for help he is the best :) He did help me.
  10. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    I don't think PermissionsPlus has any API.
  11. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    it does
  12. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    Where is the documentation for it?
  13. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    Inside the plugin :p not every API has a documentation
  14. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    Lol OK. I'll check it later on.
  15. Darunia18
    Offline

    Darunia18 Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    755
    Plugins:
    2
    Minecraft User:
    Darunia18
    Well whenever you get back to this, could you add actual permission nodes (like Bukkit uses) so that server admins can control more of what players are able to do? @wies has posted a few times of how to add permission nodes into plugins, so maybe plugin devs will begin to support permission nodes.
  16. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    I honestly don't know what that is, I don't usually have anything to do with MCPC or Bukkit
  17. Darunia18
    Offline

    Darunia18 Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    755
    Plugins:
    2
    Minecraft User:
    Darunia18
    Ok I'll explain a bit more. Most Bukkit plugins have included in their plugins something called "permission nodes". Instead of adding the actual command to the list of allowed permissions, they add these nodes. To allow gamemode changing with the Bukkit plugin Essentials, the node given to the rank is 'essentials.gamemode._', with the final part being either 0, 1, or 2, or if you wanted to give them everything, you could do 'essentials.gamemode.*'. To add onto this, if you wanted to give them every permissions included in the essentials plugin, you would give the node 'essentials.*'. Nodes are much better in my opinion because they allow server admins to control not only the use of commands, but also events. So for a trampoline plugin, you could give them the node "trampoline.bounce", which would allow them to bounce on the trampoline block whenever they step on it. Without this node, nothing would happen. I'd suggest looking into them a bit. They make permissions much easier for server admins, allow admins to control events, admins can give sub-permissions, and more. I've wanted this to be used in PocketMine for awhile, but so far only @VanishedKevin has done it with his PocketEssentials.

Share This Page

Advertisement