Plugin Help PEX Help

Discussion in 'Plugin Help/Development/Requests' started by si7vder, Oct 26, 2014.

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

    si7vder

    Hi, I have been running this version of PEX on my 1.6.2 server a while back and I changed some things and now I wanted to host it on my 1.8 server but somehow I get this error below (here is my permissions http:pastebin.com/EJeQKqGD) it is very long and like 10% of it is useless like Admin group and the anticheat bits since I no longer use them but that shouldn't matter. If you have a way to quickly find errors like spaces or tabs I would appreciate knowing it too.
    If I delete my Permissions file it creates a new one and I no longer have this error:
    21:28:13 [INFO] [PermissionsEx] Enabling PermissionsEx v1.22.5 21:28:13 [INFO] [PermissionsEx] Initializing file backend 21:28:13 [SEVERE] [PermissionsEx] 21:28:13 ========== UNABLE TO LOAD PERMISSIONS BACKEND ========= 21:28:13 Your configuration must be fixed before PEX will enable 21:28:13 Details: Error loading permissions file! 21:28:13 ======================================================= 21:28:13 ru.tehkode.permissions.exceptions.PermissionBackendException: Error loading permissions file! 21:28:13 at ru.tehkode.permissions.backends.file.FileBackend.reload(FileBackend.java:332) [PermissionsEx.jar:?] 21:28:13 at ru.tehkode.permissions.backends.file.FileBackend.<init>(FileBackend.java:120) [PermissionsEx.jar:?] 21:28:13 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [?:1.7.0_60] 21:28:13 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [?:1.7.0_60] 21:28:13 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [?:1.7.0_60] 21:28:13 at java.lang.reflect.Constructor.newInstance(Unknown Source) [?:1.7.0_60] 21:28:13 at ru.tehkode.permissions.backends.PermissionBackend.getBackend(PermissionBackend.java:392) [PermissionsEx.jar:?] 21:28:13 at ru.tehkode.permissions.backends.PermissionBackend.getBackend(PermissionBackend.java:367) [PermissionsEx.jar:?] 21:28:13 at ru.tehkode.permissions.PermissionManager.createBackend(PermissionManager.java:624) [PermissionsEx.jar:?] 21:28:13 at ru.tehkode.permissions.PermissionManager.setBackend(PermissionManager.java:606) [PermissionsEx.jar:?] 21:28:13 at ru.tehkode.permissions.PermissionManager.initBackend(PermissionManager.java:684) [PermissionsEx.jar:?] 21:28:13 at ru.tehkode.permissions.PermissionManager.<init>(PermissionManager.java:67) [PermissionsEx.jar:?] 21:28:13 at ru.tehkode.permissions.bukkit.PermissionsEx.onEnable(PermissionsEx.java:164) [PermissionsEx.jar:?] 21:28:13 at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot1649.jar:git-Spigot-1649] 21:28:13 at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [spigot1649.jar:git-Spigot-1649] 21:28:13 at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [spigot1649.jar:git-Spigot-1649] 21:28:13 at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [spigot1649.jar:git-Spigot-1649] 21:28:13 at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [spigot1649.jar:git-Spigot-1649] 21:28:13 at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot1649.jar:git-Spigot-1649] 21:28:13 at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot1649.jar:git-Spigot-1649] 21:28:13 Caused by: org.bukkit.configuration.InvalidConfigurationException: expected '<document start>', but found BlockMappingStart 21:28:13 in 'string', line 102, column 1: 21:28:13 schema-version: 1 21:28:13 ^ 21:28:13 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57) [spigot1649.jar:git-Spigot-1649] 21:28:13 at ru.tehkode.permissions.backends.file.FileConfig.loadFromString(FileConfig.java:62) [PermissionsEx.jar:?] 21:28:13 at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:226) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:169) [spigot1649.jar:git-Spigot-1649] 21:28:13 at ru.tehkode.permissions.backends.file.FileConfig.load(FileConfig.java:32) [PermissionsEx.jar:?] 21:28:13 at ru.tehkode.permissions.backends.file.FileBackend.reload(FileBackend.java:320) [PermissionsEx.jar:?] 21:28:13 ... 23 more 21:28:13 Caused by: org.yaml.snakeyaml.parser.ParserException: null; expected '<document start>', but found BlockMappingStart; in 'string', line 102, column 1: 21:28:13 schema-version: 1 21:28:13 ^ 21:28:13 at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:225) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.yaml.snakeyaml.Yaml.load(Yaml.java:400) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) [spigot1649.jar:git-Spigot-1649] 21:28:13 at ru.tehkode.permissions.backends.file.FileConfig.loadFromString(FileConfig.java:62) [PermissionsEx.jar:?] 21:28:13 at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:226) [spigot1649.jar:git-Spigot-1649] 21:28:13 at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:169) [spigot1649.jar:git-Spigot-1649] 21:28:13 at ru.tehkode.permissions.backends.file.FileConfig.load(FileConfig.java:32) [PermissionsEx.jar:?] 21:28:13 at ru.tehkode.permissions.backends.file.FileBackend.reload(FileBackend.java:320) [PermissionsEx.jar:?] 21:28:13 ... 23 more 21:28:13 [INFO] [PermissionsEx] Disabling PermissionsEx v1.22.5
    **
     
  2. Offline

    Eklip_Z

    I'm sorry but I can't find an error there. A little trick I used a while ago was that I would copy paste each rank and then test to see if it works, eventually you will find errors which you can fix.
     
  3. Offline

    JaguarJo

    Well somehow it manages to pass the YAML parser without spitting out errors, but I can still see several formatting issues in there. First of all, when PEX updated to version 1.22, they moved the prefix lines to under the options section. All of your prefixes need moved. Example of where the prefixes go now, using your first group:
    Code:
    groups:
      default:
        options:
          default: true
          prefix: '&d[Guest]&f'
        permissions:
        - -ChestShop.shop.sell
        - -ChestShop.shop.buy
        - modifyworld.chat
        - -moneydrop.*
        - essentials.suicide
    Next, you have a space on the first line right before the word groups. That space should not be there. Your default: true line is also misaligned.

    This last group is a formatting mess and looks like you were doing in-game commands and accidentally mistyped some of them:
    Code:
      adminfigher:
        worlds:
          -afk.auto:
            permissions:
            - '-'
        permissions:
        - -essentials.afk.auto
        - -afk.auto
    You have more formatting problems with your first user entry:
    Code:
      Si7vder:
        group:
        - AdminFighter
        prefix: ''
        options:
          groop: AdminFighter
          group: fighter
        suffix: '&9?'
        worlds:
          '&1':
            suffix: set
    Again, looks like mistypes with the in-game commands.

    And finally, that messages section at the bottom. As far as I know, PEX doesn't use a section like that. If this has changed however and it does use one now, then you need to remove the single space before the word messages. Same problem you had at the beginning of your file right before the word groups.

    Hope this helps.
     
Thread Status:
Not open for further replies.

Share This Page