Solved Permission children not working.

Discussion in 'Plugin Development' started by Condolent, Jul 17, 2015.

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

    Condolent

    Not sure why but my permission-children are not working. Anyone know why?
    Code:
    Permissions:
       testplugin.*:
          description: Gives the player all permissions.
          children:
             testplugin.gamemode: true
             testplugin.weather: true
             testplugin.time: true
             testplugin.reload: true
             testplugin.setclass: true
             testplugin.broadcast: true
             testplugin.heal: true
             testplugin.freeze: true
             testplugin.invsee: true
       testplugin.time:
          description: Change the time.
    When I give myself the testplugin.* permission it doesn't do anything. I can still not use commands connected to the other permissions
     
    Last edited: Jul 17, 2015
  2. Permissioms: should be lowercased
     
  3. Offline

    Condolent

    @FisheyLP lol ofc it was that simple.. I accidently misstyped it. Hahaha, thanks! xd
     
  4. Offline

    Konato_K

    @FisheyLP This is truth, but not exactly as it, permissions are handled in lowercase, if they are specified with a different case they will be transformed to lowercase before adding/checking if they have the permission.

    Edit: Nevermind, I thought you were talking about the actual permissions and didn't see the "Permissions" on top.

    @Condolent Maybe it's your permission plugin? How are you adding the permission?
     
  5. Offline

    Condolent

    @Konato_K it's fine, it was that damn uppercase P that messed it all up xd
     
Thread Status:
Not open for further replies.

Share This Page