Plugin Permission Nodes not Working

Discussion in 'Bukkit Help' started by David_B, Jul 6, 2014.

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

    David_B

    For the longest time, I used the PermissionsBukkit plugin. Today I just learned that for some reason, the permissions are no longer working. I was running an outdated version of the plugin so I updated it, but that did not solve the problem. I figured that perhaps it was a problem with the plugin, so I tried Permission Manager, and I got the same exact result: the permissions did not take effect. This leaves me to believe that the problem lies with Bukkit. Does anyone have any idea about the problem? I am running the latest development build of Bukkit.
     
  2. Offline

    Necrodoom

    Bukkit works fine, so do the plugins. Describe your issue and paste permissions file.
     
  3. Offline

    David_B

    Issue - Permissions file does not seem to take effect.

    Permissions File -
    Code:
    # PermissionsBukkit configuration file
    #
    # A permission node is a string like 'permissions.build', usually starting
    # with the name of the plugin. Refer to a plugin's documentation for what
    # permissions it cares about. Each node should be followed by true to grant
    # that permission or false to revoke it, as in 'permissions.build: true'.
    # Some plugins provide permission nodes that map to a group of permissions -
    # for example, PermissionsBukkit has 'permissions.*', which automatically
    # grants all admin permissions. You can also specify false for permissions
    # of this type.
    #
    # Users inherit permissions from the groups they are a part of. If a user is
    # not specified here, or does not have a 'groups' node, they will be in the
    # group 'default'. Permissions for individual users may also be specified by
    # using a 'permissions' node with a list of permission nodes, which will
    # override their group permissions. World permissions may be assigned to
    # users with a 'worlds:' entry.
    #
    # Groups can be assigned to players and all their permissions will also be
    # assigned to those players. Groups can also inherit permissions from other
    # groups. Like user permissions, groups may override the permissions of their
    # parent group(s). Unlike users, groups do NOT automatically inherit from
    # default. World permissions may be assigned to groups with a 'worlds:' entry.
    users:
      Boney_Bob:
        permissions:
          bukkit.command.gamemode: true
      willgdrops:
        permissions:
          bukkit.command.gamemode: true
          bukkit.command.time.add: true
          bukkit.command.time.set: true
          bukkit.command.toggledownfall: true
          bukkit.command.weather: true
      RyanBlocks2:
        permissions:
          bukkit.command.gamemode: true
          bukkit.command.time.*: true
          worldedit.*: true
      Minecraftman41:
        permissions:
          bukkit.command.gamemode: true
          bukkit.command.time.*: true
          worldedit.*: true
      608ba003-1887-4d6b-a64a-142b23486079:
        permissions:
          bukkit.command.gamemode: true
          bukkit.command.time.*: true
          worldedit.*: true
    groups:
      default:
        permissions:
          myhome.user: true
          multiworld.command.goto: true
          notes.help: true
          notes.list: true
          notes.view: true
          notes.add: true
          notes.delete: true
    debug: false
    
     
  4. Offline

    Necrodoom

    Which command, what plugins, and what player name. I see both UUID and player names in file.
     
  5. Offline

    David_B

    None of the commands are working, regardless of if they are built into Bukkit or not. The latest version of PermissionsBukkit converts usernames into UUIDs whenever they log in. I am not sure whose UUID that is.

    Edit: Just used a Minecraft UUID lookup tool to find the username of the player. The username is killersam283.
     
  6. Offline

    Necrodoom

    David_B you give each player different permissions, I need an example so I can compare with your file.
     
  7. Offline

    David_B

  8. Offline

    LHammonds

    From looking at your permissions list, you are not granting many commands and you still have not said which commands are broken other than all.

    So let's start with the basics, what is the result when you type "/time set 0" and what is your IGN? (in other words, are you one of the blokes specifically given extra bukkit commands in the permission file?)

    I was curious about PermissionsBukkit so I downloaded version 2.3 and dropped it into an old Craftbukkit 1.7.2 server. I then massaged the permissions around (as part of my learning), started up the server and was able to issue the following bukkit commands with 100% success:

    Code:
    /time set 0
    /gamemode 1
    I also tested bukkit commands that are granted by default and were not specified in the permissions file:

    Code:
    /tell HammondsLegacy Hi
    /me Hi
    /plugins
    To verify that I didn't have permission to bukkit commands not granted by default and not listed in the permissions file, I typed the following and was denied access to run them (which is a success)

    Code:
    /seed
    /tp
    /give
    /xp
    So basically, it worked for me and I'm 100% new to that plugin. I mimic'd the example and even included some tests of inheritance for good measure.

    PermissionsBukkit - config.yml
    Code:
    # PermissionsBukkit configuration file
    users:
      e486986a-2ac4-4dae-beb2-37fa4341b535:
        permissions:
          worldedit.*: true
        groups:
        - member
        - bukkit
    groups:
      default:
        permissions:
          myhome.user: true
          multiworld.command.goto: true
          notes.help: true
          notes.list: true
          notes.view: true
          notes.add: true
          notes.delete: true
      member:
        inheritance:
        - default
      bukkit:
        permissions:
          bukkit.command.gamemode: true
          bukkit.command.time.add: true
          bukkit.command.time.set: true
          bukkit.command.toggledownfall: true
          bukkit.command.weather: true
    debug: false
    
    LHammonds
     
Thread Status:
Not open for further replies.

Share This Page