Problem/Bug command.yml error

Discussion in 'General Help' started by sotzaii_shuen, Jun 11, 2018.

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

    sotzaii_shuen

    Code:
    # This is the commands configuration file for Bukkit.
    # For documentation on how to make use of this file, check out the Bukkit Wiki at
    # [URL]http://wiki.bukkit.org/Commands.yml[/URL]
    #
    # If you need help on this file, feel free to join us on irc or leave a message
    # on the forums asking for advice.
    #
    # IRC: #spigot @ irc.spi.gt
    #    (If this means nothing to you, just go to [URL]http://www.spigotmc.org/pages/irc/[/URL] )
    # Forums: [URL]http://www.spigotmc.org/[/URL]
    # Bug tracker: [URL]http://www.spigotmc.org/go/bugs[/URL]
    
    command-block-overrides: []
    unrestricted-advancements: false
    aliases:
      icanhasbukkit:
      - version $1-
    #=============================游戏模式===========================#
      '3':
      - gamemode spectator
      c:
      - gamemode creative
      s:
      - gamemode survival
      a:
      - gamemode adventure
      /3:
      - gamemode spectator @a
      /c:
      - gamemode creative @a
      /s:
      - gamemode survival @a
      /a:
      - gamemode adventure @a
    #=============================游戏模式===========================#
      g:
      - give @p $$1
      q:
      - data merge block ~ ~-1 ~ {CustomName:\"{\\"text\\":\\"系\\",\\"color\\":\\"green\\",\\"extra\\":[{\\"text\\":\\"统\\",\\"color\\":\\"aqua\\"}]}\"}
    #===========================隔离区==============================#
      /:
      - gamerule sendCommandFeedback false
      - scoreboard teams leave @a
      - scoreboard teams join abc penghuang
      - scoreboard teams join abc InkWei
      - scoreboard teams join abc sotzaii_shuen
      - give @p command_block{BlockEntityTag:{auto:1,Command:\"summon falling_block ~ ~1 ~ {BlockState:{Name:\\"command_block\\"},Time:1,Data:1,TileEntityData:{auto:1,Command:\\"fill ~ ~ ~ ~ ~-1 ~ air\\"},Passengers:[{id:falling_block,BlockState:{Name:\\"repeating_command_block\\"},Time:1,Data:1,TileEntityData:{auto:1,Command:\\"tellraw \@a[r=100,name=!sotzaii_shuen] {\\\\"text\\\\":\\\\"你没有权限进入此地 区!\\\\",\\\\"color\\\\":\\\\"red\\\\"}\\"},Passengers:[{id:falling_block,BlockState:{Name:\\"chain_command_block\\"},Time:1,Data:1,TileEntityData:{auto:1,Command:\\"tp @a[r=100,name=!sotzaii_shuen] 0 133 0\\"}}]}]}\"},display:{Name:\"\\"全部滚!\\"\"}} 1
      - give @p command_block{BlockEntityTag:{auto:1,Command:\"summon falling_block ~ ~1 ~ {BlockState:{Name:\\"command_block\\"},Time:1,Data:1,TileEntityData:{auto:1,Command:\\"fill ~ ~ ~ ~ ~-1 ~ air\\"},Passengers:[{id:falling_block,BlockState:{Name:\\"repeating_command_block\\"},Time:1,Data:1,TileEntityData:{auto:1,Command:\\"tellraw \@a[r=100,team=!abc] {\\\\"text\\\\":\\\\"你没有权限进入此地区!\\\\",\\\\"color\\\\":\\\\"red\\\\"}\\"},Passengers:[{id:falling_block,BlockState:{Name:\\"chain_command_block\\"},Time:1,Data:1,TileEntityData:{auto:1,Command:\\"tp @a[r=100,team=!abc] 0 133 0\\"}}]}]}\"},display:{Name:\"\\"闲人免进!\\"\"}} 1
      - gamerule sendCommandFeedback true
    #===========================隔离区==============================#
      t:
      - gamerule sendCommandFeedback false
      - give @p command_block{BlockEntityTag:{auto:1,Command:\"summon falling_block ~ ~1 ~ {BlockState:{Name:\\"command_block\\"},Time:1,Data:1,Passengers:[{id:falling_block,BlockState:{Name:\\"command_block\\"},Time:1,TileEntityData:{auto:1,Command:\\"fill ~ ~ ~ ~ ~-2 ~ air\\"}}],TileEntityData:{auto:1,Command:\\"tellraw @a [\\\\"\\\\",{\\\\"text\\\\":\\\\"[\\\\",\\\\"color\\\\":\\\\"gray\\\\",\\\\"italic\\\\":true},{\\\\"text\\\\":\\\\"congzai43\\\\",\\\\"hoverEvent\\\\":{\\\\"action\\\\":\\\\"show_text\\\\",\\\\"value\\\\":{\\\\"text\\\\":\\\\"\\\\",\\\\"extra\\\\":[{\\\\"text\\\\":\\\\"congzai43\\\\nType: minecraft:player\\\\n5e44469b-dc3d-3088-87ea- cbeb7a63b72b\\\\"}]}},\\\\"color\\\\":\\\\"gray\\\\",\\\\"italic\\\\":false},{\\\\"text\\\\":\\\\":已将\\\\",\\\\"color\\\\":\\\\"gray\\\\",\\\\"italic\\\\":true},{\\\\"text\\\\":\\\\"[钻石块]\\\\",\\\\"italic\\\\":true,\\\\"hoverEvent\\\\":{\\\\"action\\\\":\\\\"show_item\\\\",\\\\"value\\\\":\\\\"{id:\\\\\\\\"minecraft:diamond_block\\\\\\\\",Count:1}\\\\"},\\\\"color\\\\":\\\\"none\\\\"},{\\\\"text\\\\":\\\\"给予\\\\",\\\\"color\\\\":\\\\"gray\\\\",\\\\"italic\\\\":true},{\\\\"text\\\\":\\\\"congzai43\\\\",\\\\"hoverEvent\\\\":{\\\\"action\\\\":\\\\"show_text\\\\",\\\\"value\\\\":{\\\\"text\\\\":\\\\"\\\\",\\\\"extra\\\\":[{\\\\"text\\\\":\\\\"congzai43\\\\nType: minecraft:player\\\\n5e44469b-dc3d-3088-87ea-cbeb7a63b72b\\\\"}]}},\\\\"color\\\\":\\\\"gray\\\\",\\\\"italic\\\\":false},{\\\\"text\\\\":\\\\"]\\\\",\\\\"color\\\\":\\\\"gray\\\\",\\\\"italic\\\\":true}]\\"}}\"},display:{Name:\"\\"已将[钻石块]给予 congzai43\\"\"}} 1
      - give @p command_block{BlockEntityTag:{auto:1,Command:\"summon falling_block ~ ~1 ~ {BlockState:{Name:\\"stone\\"},Time:1,Passengers:[{id:falling_block,BlockState:{Name:\\"redstone_block\\"},Time:1,Passengers:[{id:falling_block,BlockState:{Name:\\"activator_rail\\"},Time:1,Passengers:[{id:commandblock_minecart,Command:\\"gamerule commandBlockOutput false\\"},{id:commandblock_minecart,Command:\\"fill ~2 \~-3 ~-1 ~9 ~-1 ~1 yellow_concrete hollow\\"},{id:commandblock_minecart,Command:\\"fill ~2 ~-2 ~-1 ~9 ~-2 ~1 white_stained_glass replace yellow_concrete\\"},{id:commandblock_minecart,Command:\\"setblock ~1 ~-2 ~1 wall_sign[facing=west]{Text1:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"=======================\\\\\\\\",\\\\\\\\"clickEvent\\\\\\\\":{\\\\\\\\"action\\\\\\\\":\\\\\\\\"run\_command\\\\\\\\",\\\\\\\\"value\\\\\\\\":\\\\\\\\"scoreboard players add @e[type=armor_stand,name=TogAct] _A 1\\\\\\\\"},\\\\\\\\"bold\\\\\\\\":true}\\\\",Text2:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"启 动机器\\\\\\\\",\\\\\\\\"color\\\\\\\\":\\\\\\\\"green\\\\\\\\",\\\\\\\\"clickEvent\\\\\\\\":{\\\\\\\\"action\\\\\\\\":\\\\\\\\"run_command\\\\\\\\",\\\\\\\\"value\\\\\\\\":\\\\\\\\"execute @e[score__A=1] ~ ~ ~ blockdata ~ ~ ~ {auto:0}\\\\\\\\"},\\\\\\\\"bold\\\\\\\\":true}\\\\",Text3:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"关闭机器\\\\\\\\",\\\\\\\\"color\\\\\\\\":\\\\\\\\"red\\\\\\\\",\\\\\\\\"clickEvent\\\\\\\\":{\\\\\\\\"action\\\\\\\\":\\\\\\\\"run_command\\\\\\\\",\\\\\\\\"value\\\\\\\\":\\\\\\\\"execute @e[score__A_min=2] ~ ~ ~ blockdata ~ ~ ~ {auto:1}\\\\\\\\"},\\\\\\\\"bold\\\\\\\\":true}\\\\",Text4:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"=======================\\\\\\\\",\\\\\\\\"clickEvent\\\\\\\\":{\\\\\\\\"action\\\\\\\\":\\\\\\\\"run_command\\\\\\\\",\\\\\\\\"value\\\\\\\\":\\\\\\\\"scoreboard players reset @e[score__A_min=2] _A\\\\\\\\"},\\\\\\\\"bold\\\\\\\\":true}\\\\"}\\"},{id:commandblock_minecart,Command:\\"setblock ~1 ~-2 ~-1 wall_sign[facing=west]{Text1:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"=======================\\\\\\\\",\\\\\\\\"bold\\\\\\\\":true,\\\\\\\\"clickEvent\\\\\\\\":{\\\\\\\\"action\\\\\\\\":\\\\\\\\"run_command\\\\\\\\",\\\\\\\\"value\\\\\\\\":\\\\\\\\"scoreboard objectives remove _A\\\\\\\\"}}\\\\",Text2:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"毁灭\\\\\\\\",\\\\\\\\"color\\\\\\\\":\\\\\\\\"red\\\\\\\\",\\\\\\\\"bold\\\\\\\\":true,\\\\\\\\"clickEvent\\\\\\\\":{\\\\\\\\"action\\\\\\\\":\\\\\\\\"run_command\\\\\\\\",\\\\\\\\"value\\\\\\\\":\\\\\\\\"kill @e[type=armor_stand,Name=TogAct]\\\\\\\\"}}\\\\",Text3:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"机器\\\\\\\\",\\\\\\\\"color\\\\\\\\":\\\\\\\\"red\\\\\\\\"}\\\\",Text4:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"=======================\\\\\\\\",\\\\\\\\"clickEvent\\\\\\\\":{\\\\\\\\"action\\\\\\\\":\\\\\\\\"run_command\\\\\\\\",\\\\\\\\"value\\\\\\\\":\\\\\\\\"fill ~ ~-1 ~ ~8 ~1 ~2 air\\\\\\\\"},\\\\\\\\"bold\\\\\\\\":true}\\\\"}\\"},{id:commandblock_minecart,Command:\\"summon armor_stand ~3 ~-2 ~ {CustomName:TogAct,Marker:1,NoGravity:1,Invisible:1}\\"},{id:commandblock_minecart,Command:\\"scoreboard objectives add _A dummy\\"},{id:commandblock_minecart,Command:\\"setblock ~1 ~-2 ~ wall_sign[facing=west]{Text1:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"=======================\\\\\\\\",\\\\\\\\"bold\\\\\\\\":true}\\\\",Text2:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"获取武器\\\\\\\\",\\\\\\\\"color\\\\\\\\":\\\\\\\\"green\\\\\\\\",\\\\\\\\"bold\\\\\\\\":true}\\\\",Text3:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"By sotzaii_shuen\\\\\\\\",\\\\\\\\"color\\\\\\\\":\\\\\\\\"gold\\\\\\\\",\\\\\\\\"bold\\\\\\\\":true,\\\\\\\\"clickEvent\\\\\\\\":{\\\\\\\\"action\\\\\\\\":\\\\\\\\"run_command\\\\\\\\",\\\\\\\\"value\\\\\\\\":\\\\\\\\"replaceitem entity @p weapon.mainhand bow{display:{Name:\\\\\\\\\\\\\\\\"TNT弓\\\\\\\\\\\\\\\\"}} 1\\\\\\\\"}}\\\\",Text4:\\\\"{\\\\\\\\"text\\\\\\\\":\\\\\\\\"=======================\\\\\\\\",\\\\\\\\"bold\\\\\\\\":true}\\\\"}\\"},{id:commandblock_minecart,Command:\\"setblock ~ ~ ~1 command_block{Command:\\\\"fill ~ ~-3 ~-1 ~ ~ ~ air\\\\"}\\"},{id:commandblock_minecart,Command:\\"setblock ~ ~-1 ~1 redstone_block\\"},{id:commandblock_minecart,Command:\\"fill ~3 ~-2 ~ ~8 ~-2 ~ chain_command_block[facing=east,conditional=true]\\"},{id:commandblock_minecart,Command:\\"setblock ~3 ~-2 ~ repeating_command_block[facing=east,conditional=false]\\"},{id:commandblock_minecart,Command:\\"setblock ~5 ~-2 ~ chain_command_block[facing=east,conditional=false]\\"},{id:commandblock_minecart,Command:\\"data merge block ~6 ~-2 ~ {auto:1,Command:\\\\"execute at @e[tag=bom1] run summon tnt\\\\"}\\"},{id:commandblock_minecart,Command:\\"data merge block ~5 ~-2 ~ {auto:1,Command:\\\\"tag @e[type=arrow,tag=bom,nbt={inGround:1b}] add bom1\\\\"}\\"},{id:commandblock_minecart,Command:\\"data merge block ~4 ~-2 ~ {auto:1,Command:\\\\"tag @e[type=arrow,tag=!bom1,nbt={inGround:0b}] add bom\\\\"}\\"},{id:commandblock_minecart,Command:\\"data merge block ~3 ~-2 ~ {auto:1,Command:\\\\"data get entity @r[nbt={SelectedItem:{id:\\\\\\\\"minecraft:bow\\\\\\\\",tag:{display:{Name:\\\\\\\\"TNT弓\\\\\\\\"}}}}]\\\\"}\\"},{id:commandblock_minecart,Command:\\"data merge block ~8 ~-2 ~ {auto:1,Command:\\\\"kill @e[type=item]\\\\"}\\"},{id:commandblock_minecart,Command:\\"data merge block ~7 ~-2 ~ {auto:1,Command:\\\\"kill @e[type=arrow,tag=bom1]\\\\"}\\"},{id:commandblock_minecart,Command:\\"kill @e[type=commandblock_minecart]\\"}]}]}]}\"},display:{Name:\"{\\"text\\":\\"TNT弓\\"}\"}} 1
      - gamerule sendCommandFeedback true
    #===========================结束===============================#
    
    Code:
    ===========================Error Text============================
    [14:03:53 ERROR]: Cannot load commands.yml org.bukkit.configuration.InvalidConfigurationException: mapping values are not allowed here in 'string', line 53, column 1325:     ... ext\\\\":\\\\"congzai43\\\\nType: minecraft:player\\\\n5e44469b- ...                                         ^     at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:162) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:178) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.bukkit.craftbukkit.v1_12_R1.CraftServer.reload(CraftServer.java:645) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.bukkit.Bukkit.reload(Bukkit.java:534) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:628) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:614) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:408) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:372) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:651) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:555) [craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172] Caused by: org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here in 'string', line 53, column 1325:     ... ext\\\\":\\\\"congzai43\\\\nType: minecraft:player\\\\n5e44469b- ...                                         ^     at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:872) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:360) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:557) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:157) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:147) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:227) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:154) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:201) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:152) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:249) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:240) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:154) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:249) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:240) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:154) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:140) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.yaml.snakeyaml.Yaml.load(Yaml.java:437) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) ~[craftbukkit-1.12.2.jar:git-Bukkit-8cc5a7e]     ... 14 more
    at the post :p change to : p
    File command.yml.txt change name to command.yml
     

    Attached Files:

    Last edited by a moderator: Jun 11, 2018
Thread Status:
Not open for further replies.

Share This Page