Plugin Help Pex permissions.yml issue

Discussion in 'Plugin Help/Development/Requests' started by duncanw, Aug 6, 2018.

  1. Offline

    duncanw

    Hey everyone I am need of assistance with my pex permissions.yml file. I recreated it multiple times and I believe everything is correct although whenever I startup the server or reload the pex plugin I get this error:
    org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
    I don't know valid YAML so if someone could just go over and review my permissions.yml and show me the errors, that would be awesome. I will post the full console feed of the error and if someone knows what's going on I can post the permissions file as well

    Code:
    [10:03:16 WARN]: [PermissionsEx] Failed to reload permissions when CONSOLE ran `pex reload`
    ru.tehkode.permissions.exceptions.PermissionBackendException: Error loading permissions file!
            at ru.tehkode.permissions.backends.file.FileBackend.reload(FileBackend.java:321) ~[PermissionsEx-1.23.4.jar:?]
            at ru.tehkode.permissions.PermissionManager.reset(PermissionManager.java:657) ~[PermissionsEx-1.23.4.jar:?]
            at ru.tehkode.permissions.PermissionManager.reset(PermissionManager.java:645) ~[PermissionsEx-1.23.4.jar:?]
            at ru.tehkode.permissions.bukkit.commands.UtilityCommands.reload(UtilityCommands.java:58) [PermissionsEx-1.23.4.jar:?]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
            at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
            at ru.tehkode.permissions.commands.CommandsManager$CommandBinding.call(CommandsManager.java:248) [PermissionsEx-1.23.4.jar:?]
            at ru.tehkode.permissions.commands.CommandsManager.execute(CommandsManager.java:110) [PermissionsEx-1.23.4.jar:?]
            at ru.tehkode.permissions.bukkit.PermissionsEx.onCommand(PermissionsEx.java:315) [PermissionsEx-1.23.4.jar:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:628) [craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:614) [craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:408) [craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:372) [craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:651) [craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:555) [craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_181]
    Caused by: org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
    in 'string', line 133, column 5:
            prefix: '&7[&6Gold&7]&7'
            ^
    expected <block end>, but found BlockEntry
    in 'string', line 138, column 5:
            - essentials.fly.safelogin
            ^
    
            at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at ru.tehkode.permissions.backends.file.FileConfig.loadFromString(FileConfig.java:68) ~[?:?]
            at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:162) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at ru.tehkode.permissions.backends.file.FileConfig.load(FileConfig.java:38) ~[?:?]
            at ru.tehkode.permissions.backends.file.FileBackend.reload(FileBackend.java:309) ~[?:?]
            ... 19 more
    Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
    in 'string', line 133, column 5:
            prefix: '&7[&6Gold&7]&7'
            ^
    expected <block end>, but found BlockEntry
    in 'string', line 138, column 5:
            - essentials.fly.safelogin
            ^
    
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:571) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:157) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:147) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:227) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:154) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:249) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:240) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:154) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:249) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:240) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:154) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:140) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:437) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at ru.tehkode.permissions.backends.file.FileConfig.loadFromString(FileConfig.java:68) ~[?:?]
            at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:162) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130) ~[craftbukkit-1.12.2.jar:git-Bukkit-2b93d83]
            at ru.tehkode.permissions.backends.file.FileConfig.load(FileConfig.java:38) ~[?:?]
            at ru.tehkode.permissions.backends.file.FileBackend.reload(FileBackend.java:309) ~[?:?]
            ... 19 more
    Here is permissions file anyways:
    https://pastebin.com/teRdsTEG

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Aug 12, 2018

Share This Page