Develope a Permissions Plugin

Discussion in 'Plugin Development' started by Iskaff33, Jun 16, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Iskaff33

    I need some help with developing a permissions plugin.
    My code is:
    Code:
                        PermissionAttachment attachment = p.addAttachment(this);
                        attachment.setPermission("worldedit.*", true);
    
    But the player still don't get the permission node. Please help :)
     
  2. Offline

    Konato_K

    @Iskaff33 Do you have any other permission plugin interfering?
     
  3. Offline

    Iskaff33

    No, my only plugins is my costum, WorldEdit, WorldGuard, CoreProtect and Vault.
     
  4. Offline

    RingOfStorms

    I'm fairly certain that the node worldedit.* does not exist, you need to add in all of the nodes you wish to use. Permission plugins handle * nodes themselves and if you wish to support that kind of permission then you need to code it in yourself.

    Edit: worldedit.* does exist according to the worldedit wiki, but my statement still stands that most permissions plugins handle the implementation themselves as most developers do not code in * nodes to their own plugins.
     
  5. Offline

    Rahat

    @Iskaff33 Just add the permission to a config ?
     
  6. try calling player.recalculatePermissions() after updating your attachments, this should flush your permissions to the game
     
Thread Status:
Not open for further replies.

Share This Page