Question java.lang.IllegalArgumentException: The following file couldn't pass on Parser.

Discussion in 'Bukkit Help' started by ThaGreenDuck, Jul 23, 2019.

  1. Offline

    ThaGreenDuck

    Hello there everyone,

    I'm trying to help a friend of mine to make a vanilla Minecraft Server... so plugins and groups is a thing we are working on. So the plugins we are going to use are:


    • EssentialsX
    • GroupManager
    • PermissionsEx
    • WorldEdit
    • WorldGuard
    • Holographic Display
    • Vault
    • ClearLag
    • GriefPrevention
    • Dynmap
    The MC server is gonna be run on a Spigot 1.14 server.

    At this moment I'm working on GroupManager and I'm getting stuck with this Error:

    Code:
    java.lang.IllegalArgumentException: The following file couldn't pass on Parser.
    plugins\GroupManager\worlds\world\groups.yml
       at org.anjocaido.groupmanager.dataholder.WorldDataHolder.loadGroups(WorldDataHolder.java:590)
       at org.anjocaido.groupmanager.dataholder.WorldDataHolder.loadGroups(WorldDataHolder.java:510)
       at org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder.loadWorld(WorldsHolder.java:678)
       at org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder.loadWorld(WorldsHolder.java:640)
       at org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder.initialWorldLoading(WorldsHolder.java:110)
       at org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder.initialLoad(WorldsHolder.java:100)
       at org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder.resetWorldsHolder(WorldsHolder.java:92)
       at org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder.<init>(WorldsHolder.java:59)
       at org.anjocaido.groupmanager.GroupManager.onEnable(GroupManager.java:168)
       at org.anjocaido.groupmanager.GroupManager.onEnable(GroupManager.java:92)
       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263)
       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:352)
       at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417)
       at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:461)
       at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:375)
       at org.bukkit.craftbukkit.v1_14_R1.CraftServer.reload(CraftServer.java:810)
       at org.bukkit.Bukkit.reload(Bukkit.java:576)
       at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27)
       at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149)
       at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:710)
       at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1641)
       at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1481)
       at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:47)
       at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
       at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19)
       at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18)
       at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144)
       at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
       at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118)
       at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:910)
       at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:903)
       at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127)
       at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:887)
       at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:820)
       at java.lang.Thread.run(Unknown Source)
    Caused by: while parsing a block mapping
    in 'reader', line 12, column 3:
      Default:
      ^
    expected <block end>, but found '<block mapping start>'
    in 'reader', line 191, column 4:
      HeadAdmin:
      ^
    
       at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:572)
       at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
       at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
       at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:214)
       at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144)
       at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:236)
       at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:227)
       at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:215)
       at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144)
       at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:85)
       at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108)
       at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:139)
       at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524)
       at org.yaml.snakeyaml.Yaml.load(Yaml.java:467)
       at org.anjocaido.groupmanager.dataholder.WorldDataHolder.loadGroups(WorldDataHolder.java:585)
       ... 34 more
    The config I'm using is:

    Code:
    # Group inheritance
    #
    # Any inherited groups prefixed with a g: are global groups
    # and are inherited from the GlobalGroups.yml.
    #
    # Groups without the g: prefix are groups local to this world
    # and are defined in the this groups.yml file.
    #
    # Local group inheritances define your promotion tree when using 'manpromote/mandemote'
    
    groups:
      Default:
      default: true
      permissions:
      - modifyworld.*
      - essentials.spawn
      - essentials.sethome
      - essentials.home
      - essentials.tpaccept
      - essentials.tpdeny
      - essentials.afk
      - essentials.help
      - essentials.helpop
      - essentials.msg
      - essentials.list
      info:
      prefix: '&b[Player] '
      build: true
      suffix: ''
      
      Helper:
      default: false
      permissions:
      - essentials.tpa
      - essentials.mute
      - essentials.kick
      - essentials.back
      - essentials.helpop.receive
      inheritance:
      - default
      - g:essentials_builder
      - g:towny_builder
      info:
      prefix: '&a[Helper] '
      build: true
      suffix: ''
      
      Builder:
      default: false
      permissions:
      - bukkit.command.gamemode
      - essentials.fly
      - essentials.fly.safelogin
      inheritance:
      - default
      - g:essentials_builder
      - g:towny_builder
      info:
      prefix: '&c[Builder]'
      build: true
      suffix: ''
      
      Moderator:
      default: false
      permissions:
      - essentials.mute
      - essentials.kick
      - essentials.tempban
      - essentials.tp
      - essentials.invsee
      inheritance:
      - helper
      - g:towny_moderator
      info:
      prefix: '&[Moderator] '
      build: true
      suffix: ''
      
      HeadModerator:
      default: false
      permissions:
      - essentials.clearinventory
      - essentials.broadcast
      - essentials.ban
      - essentials.ban.notify
      - essentials.getpos
      - essentials.getpos.others
      - essentials.invsee
      - vanish.vanish
      - vanish.smokin
      - vanish.nofollow
      - vanish.nopickup
      - vanish.preventincomingdamage
      - vanish.hooks.dynmap.alwayshidden
      - vanish.hooks.essentials.hide
      - groupmanager.listgroups
      - groupmanager.mandemote
      - groupmanager.manpromote
      - groupmanager.manselect
      - groupmanager.manuadd
      - groupmanager.manudel
      - groupmanager.manwhois
      - groupmanager.notify.other
      - bukkit.command.ban
      - bukkit.command.ban.player
    
    
      inheritance:
      - moderator
      - g:towny_moderator
      - g:essentials_moderator
      - g:vanish_moderator
      info:
      prefix: '&[Head Moderator] '
      build: true
      suffix: ''
      
      Developer:
      default: false
      permissions: []
      inheritance: []
      info:
      prefix: '&b[Developer] '
      build: true
      suffix: ''
      
      Admin:
      default: false
      permissions:
      - modifyworld.*
      - essentials.spawn
      - essentials.sethome
      - essentials.home
      - essentials.afk
      - essentials.afk.auto
      - essentials.help
      - essentials.msg
      - essentials.list
      - essentials.helpop
      - essentials.mute
      - essentials.kick
      - essentials.tempban
      - essentials.ban
      - essentials.pardon
      - essentials.tp
      - essentials.tphere
      - essentials.god
      - essentials.fly
      - essentials.repair
      - essentials.heal
      - essentials.gamemode
      - essentials.nick
      - essentials.nick.color
      - essentials.nick.format
      - essentials.nick.others
      - essentials.msg.url
      - essentials.realname
      - essentials.whois
      - essentials.seen
      - essentials.recipe
      - essentials.back
      - essentials.clearinventory
      - essentials.banip
      - essentials.chat.question
      - essentials.chat.shout
      - essentials.chat.url
      - vanish.silentjoin
      - vanish.silentquit
      - vanish.silentchests
      - groupmanager.mantogglevalidate
      - groupmanager.mansave
      - groupmanager.mangcheckp
      - groupmanager.manglistp
      - groupmanager.manucheckp
      - groupmanager.manulistp
      - bukkit.command.whitelist
      - bukkit.command.whitelist.add
      - bukkit.command.whitelist.list
      - bukkit.command.whitelist.reload
      - bukkit.command.whitelist.remove
      inheritance:
      - Developer
      - g:bukkit_moderator:
      - g:essentials_moderator
      - g:towny_admin
      info:
      prefix: '&6[Admin] '
      build: true
      suffix: ''
      
      HeadAdmin:
      default: false
      permissions:
      - modifyworld.*
      - essentials.spawn
      - essentials.sethome
      - essentials.home
      - essentials.afk
      - essentials.afk.auto
      - essentials.pay
      - essentials.help
      - essentials.msg
      - essentials.list
      - essentials.helpop
      - essentials.mute
      - essentials.kick
      - essentials.tempban
      - essentials.ban
      - essentials.pardon
      - essentials.tp
      - essentials.tphere
      - essentials.god.others
      - essentials.god
      - essentials.fly
      - essentials.tphere
      - essentials.repair
      - essentials.heal
      - essentials.gamemode
      - essentials.gamemode.others
      - essentials.nick
      - essentials.nick.color
      - essentials.nick.format
      - essentials.nick.others
      - essentials.msg.url
      - essentials.realname
      - essentials.whois
      - essentials.seen
      - essentials.recipe
      - essentials.back
      - essentials.clearinventory
      - essentials.banip
      - essentials.chat.question
      - essentials.chat.shout
      - essentials.chat.url
      inheritance:
      - Admin
      - g:groupmanager_admin
      - g:bukkit_admin
      - g:towny_admin
      - g:vanish_admin
      info:
      prefix: '&6[Head Admin] '
      build: true
      suffix: ''
      
      Owner:
      default: false
      permissions:
      - essentials.*
      inheritance:
      - HeadAdmin
      info:
      prefix: '&e[Owner] '
      build: true
      suffix: ''
    What am I doing wrong?
     
  2. Offline

    timtower Moderator Moderator

  3. Offline

    Kars

    According to yamllint.com your file is valid YAML.
     
  4. Offline

    Machine Maker

    @ThaGreenDuck Hmm, maybe the parser is looking for more specific YAML formatting. Try using this
    Code:
    # Group inheritance
    #
    # Any inherited groups prefixed with a g: are global groups
    # and are inherited from the GlobalGroups.yml.
    #
    # Groups without the g: prefix are groups local to this world
    # and are defined in the this groups.yml file.
    #
    # Local group inheritances define your promotion tree when using 'manpromote/mandemote'
    
    groups:
      Default:
        default: true
        permissions:
        - modifyworld.*
        - essentials.spawn
        - essentials.sethome
        - essentials.home
        - essentials.tpaccept
        - essentials.tpdeny
        - essentials.afk
        - essentials.help
        - essentials.helpop
        - essentials.msg
        - essentials.list
        info:
        prefix: '&b[Player] '
        build: true
        suffix: ''
     
      Helper:
        default: false
        permissions:
        - essentials.tpa
        - essentials.mute
        - essentials.kick
        - essentials.back
        - essentials.helpop.receive
        inheritance:
        - default
        - g:essentials_builder
        - g:towny_builder
        info:
        prefix: '&a[Helper] '
        build: true
        suffix: ''
     
      Builder:
        default: false
        permissions:
        - bukkit.command.gamemode
        - essentials.fly
        - essentials.fly.safelogin
        inheritance:
        - default
        - g:essentials_builder
        - g:towny_builder
        info:
        prefix: '&c[Builder]'
        build: true
        suffix: ''
     
      Moderator:
        default: false
        permissions:
        - essentials.mute
        - essentials.kick
        - essentials.tempban
        - essentials.tp
        - essentials.invsee
        inheritance:
        - helper
        - g:towny_moderator
        info:
        prefix: '&[Moderator] '
        build: true
        suffix: ''
     
      HeadModerator:
        default: false
        permissions:
        - essentials.clearinventory
        - essentials.broadcast
        - essentials.ban
        - essentials.ban.notify
        - essentials.getpos
        - essentials.getpos.others
        - essentials.invsee
        - vanish.vanish
        - vanish.smokin
        - vanish.nofollow
        - vanish.nopickup
        - vanish.preventincomingdamage
        - vanish.hooks.dynmap.alwayshidden
        - vanish.hooks.essentials.hide
        - groupmanager.listgroups
        - groupmanager.mandemote
        - groupmanager.manpromote
        - groupmanager.manselect
        - groupmanager.manuadd
        - groupmanager.manudel
        - groupmanager.manwhois
        - groupmanager.notify.other
        - bukkit.command.ban
        - bukkit.command.ban.player
        inheritance:
        - moderator
        - g:towny_moderator
        - g:essentials_moderator
        - g:vanish_moderator
        info:
        prefix: '&[Head Moderator] '
        build: true
        suffix: ''
     
      Developer:
        default: false
        permissions: []
        inheritance: []
        info:
        prefix: '&b[Developer] '
        build: true
        suffix: ''
     
      Admin:
        default: false
        permissions:
        - modifyworld.*
        - essentials.spawn
        - essentials.sethome
        - essentials.home
        - essentials.afk
        - essentials.afk.auto
        - essentials.help
        - essentials.msg
        - essentials.list
        - essentials.helpop
        - essentials.mute
        - essentials.kick
        - essentials.tempban
        - essentials.ban
        - essentials.pardon
        - essentials.tp
        - essentials.tphere
        - essentials.god
        - essentials.fly
        - essentials.repair
        - essentials.heal
        - essentials.gamemode
        - essentials.nick
        - essentials.nick.color
        - essentials.nick.format
        - essentials.nick.others
        - essentials.msg.url
        - essentials.realname
        - essentials.whois
        - essentials.seen
        - essentials.recipe
        - essentials.back
        - essentials.clearinventory
        - essentials.banip
        - essentials.chat.question
        - essentials.chat.shout
        - essentials.chat.url
        - vanish.silentjoin
        - vanish.silentquit
        - vanish.silentchests
        - groupmanager.mantogglevalidate
        - groupmanager.mansave
        - groupmanager.mangcheckp
        - groupmanager.manglistp
        - groupmanager.manucheckp
        - groupmanager.manulistp
        - bukkit.command.whitelist
        - bukkit.command.whitelist.add
        - bukkit.command.whitelist.list
        - bukkit.command.whitelist.reload
        - bukkit.command.whitelist.remove
        inheritance:
        - Developer
        - g:bukkit_moderator:
        - g:essentials_moderator
        - g:towny_admin
        info:
        prefix: '&6[Admin] '
        build: true
        suffix: ''
     
      HeadAdmin:
        default: false
        permissions:
        - modifyworld.*
        - essentials.spawn
        - essentials.sethome
        - essentials.home
        - essentials.afk
        - essentials.afk.auto
        - essentials.pay
        - essentials.help
        - essentials.msg
        - essentials.list
        - essentials.helpop
        - essentials.mute
        - essentials.kick
        - essentials.tempban
        - essentials.ban
        - essentials.pardon
        - essentials.tp
        - essentials.tphere
        - essentials.god.others
        - essentials.god
        - essentials.fly
        - essentials.tphere
        - essentials.repair
        - essentials.heal
        - essentials.gamemode
        - essentials.gamemode.others
        - essentials.nick
        - essentials.nick.color
        - essentials.nick.format
        - essentials.nick.others
        - essentials.msg.url
        - essentials.realname
        - essentials.whois
        - essentials.seen
        - essentials.recipe
        - essentials.back
        - essentials.clearinventory
        - essentials.banip
        - essentials.chat.question
        - essentials.chat.shout
        - essentials.chat.url
        inheritance:
        - Admin
        - g:groupmanager_admin
        - g:bukkit_admin
        - g:towny_admin
        - g:vanish_admin
        info:
        prefix: '&6[Head Admin] '
        build: true
        suffix: ''
     
      Owner:
        default: false
        permissions:
        - essentials.*
        inheritance:
        - HeadAdmin
        info:
        prefix: '&e[Owner] '
        build: true
        suffix: ''
     
    ThaGreenDuck likes this.
  5. Offline

    ThaGreenDuck

    Show Spoiler


    Gonna try it now

    After replacing my own config with the file from @X1machinemaker1X, now the error log looks like this -thinking-

    error logs

    Groups.yml - GroupManager

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 23, 2019
  6. Offline

    Machine Maker

    There is a colon after one of the groups in the inheritance section of the admin group
     

Share This Page