PermissionsEx Broken, Need Config Help

Discussion in 'Bukkit Help' started by TheDogePwner, Sep 30, 2014.

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

    TheDogePwner

    Hello,

    This is the error I get from PermissionsEx when it loads:

    Code:
    [19:20:48] [Server thread/WARN]: Server permissions file permissions.yml is not valid YAML.
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
    at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadCustomPermissions(CraftServer.java:806) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:383) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at org.bukkit.craftbukkit.v1_7_R1.CraftServer.reload(CraftServer.java:773) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at org.bukkit.Bukkit.reload(Bukkit.java:279) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:175) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:683) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:952) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:814) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:47) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [minecraft_server.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    Here's my config file:
    Code:
    groups:
      regular:
        default: true
        prefix: '&e'
        permissions:
        - essentials.*
        - -modifyworld.damage.*
        - -modifyworld.mobtarget.*
        - modifyworld.interact.*
        options:
          rank: '100'
      owner:
        prefix: '&5'
        permissions:
        - '* users: MaYoRoFdIaMoNdS: group: - owner wooper_3000: group: - owner cheeseyman554:
          group: - guest'
    If you want to be really helpful, paste in a sample PEX config.
    Thanks for the help!
    -TheDogeEater
     
  2. Offline

    DHLF

    TheDogePwner
    Maybe you typed somewhere a "tab"?
    Those yaml files need to be correctly spaced.
    You may copy your permissions.yml to a safe location and delete the permissions.yml in your /plugins/permissionsEx folder.
    When you start your server a default permission file should be written so you can compare your spacing.

    Be aware this can cause strange side effects if your server is already full populated with users.

    A more safer way would be one of those YAML checking "programs" in the net.
    I am sorry I have no direct link for this. Maybe someone else knows a good link.
     
  3. Offline

    TheDogePwner

    Thanks for the response. I'll try to get it working. I'll tell you if I do.
     
  4. Offline

    LHammonds

    Use an Online YAML Parser and copy/paste the contents of your permissions.yml into it. If there are no format errors, it will parse the file. If there are errors, it will tell you about them and try to point you to the nearest location of where the problem might be.

    LHammonds
     
  5. Offline

    JaguarJo

    TheDogePwner If you're using one of the more recent versions of PEX, they moved the default and prefix lines to the options section. It also looks like you accidentally squeezed your whole users section into the permission node for owner group. Try this instead:
    Code:
    groups:
      regular:
        permissions:
        - essentials.*
        - -modifyworld.damage.*
        - -modifyworld.mobtarget.*
        - modifyworld.interact.*
        options:
          rank: '100'
          default: true
          prefix: '&e'
      owner:
        options:
          rank: '1'
          prefix: '&5'
        permissions:
        - '*'
    users:
      MaYoRoFdIaMoNdS:
        group:
        - owner
      wooper_3000:
        group:
        - owner
      cheeseyman554:
        group:
        - regular
     
Thread Status:
Not open for further replies.

Share This Page