crazy crates plugin error

Discussion in 'Bukkit Help' started by NotHunterMC, Mar 27, 2021.

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

    NotHunterMC

    error:
    Code:
    [17:24:38 ERROR]: Cannot load plugins\CrazyCrates\Crates\Vote.yml
    org.bukkit.configuration.InvalidConfigurationException: while scanning an anchor
     in 'string', line 129, column 21:
              DisplayName: '&b&l6x Crazy Keys!'
                            ^
    expected alphabetic or numeric character, but found &(38)
     in 'string', line 129, column 23:
              DisplayName: '&b&l6x Crazy Keys!'
                              ^
            at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:56) ~[patched_1.15.2.jar:git-Paper-391]
            at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160) ~[patched_1.15.2.jar:git-Paper-391]
            at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:128) ~[patched_1.15.2.jar:git-Paper-391]
            at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:183) ~[patched_1.15.2.jar:git-Paper-391]
            at me.badbones69.crazycrates.api.FileManager$CustomFile.<init>(FileManager.java:424) ~[?:?]
            at me.badbones69.crazycrates.api.FileManager.setup(FileManager.java:74) ~[?:?]
            at me.badbones69.crazycrates.Main.onEnable(Main.java:65) ~[?:?]
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.15.2.jar:git-Paper-391]
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380) ~[patched_1.15.2.jar:git-Paper-391]
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.15.2.jar:git-Paper-391]
            at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugin(CraftServer.java:472) ~[patched_1.15.2.jar:git-Paper-391]
            at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugins(CraftServer.java:386) ~[patched_1.15.2.jar:git-Paper-391]
            at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:488) ~[patched_1.15.2.jar:git-Paper-391]
            at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:298) ~[patched_1.15.2.jar:git-Paper-391]
            at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:909) ~[patched_1.15.2.jar:git-Paper-391]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_271]
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning an anchor
     in 'string', line 129, column 21:
              DisplayName: '&b&l6x Crazy Keys!'
                            ^
    expected alphabetic or numeric character, but found &(38)
     in 'string', line 129, column 23:
              DisplayName: '&b&l6x Crazy Keys!'
                              ^
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanAnchor(ScannerImpl.java:1452) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchAnchor(ScannerImpl.java:937) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:368) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.parser.ParserImpl$ParseIndentlessSequenceEntry.produce(ParserImpl.java:530) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:190) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:142) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:239) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:230) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:218) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:239) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:230) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:218) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:239) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:230) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:218) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:239) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:230) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:218) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:85) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:141) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:525) ~[patched_1.15.2.jar:git-Paper-391]
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:438) ~[patched_1.15.2.jar:git-Paper-391]
            at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:54) ~[patched_1.15.2.jar:git-Paper-391]
            ... 15 more
    
    code:
    Code:
    Crate:
      #Type of crate (CSGO/QuadCrate/QuickCrate/Roulette/CrateOnTheGo/FireCracker/Wonder/Wheel/War/Cosmic(This requires a additional info to work.)).
      CrateType: Wheel
      #Name of the Inventory if a GUI crate.
      CrateName: '&8Vote Crate'
      #The name of the inventory that will be in the preview GUI.
      Preview-Name: '&8Vote Crate Preview'
      #Starting amount of keys when the player 1st joins.
      StartingKeys: 0
      #If the crate shows in the /cc GUI. (If the crate type is QuickCrate/CrateOnTheGo/FireCracker then the Crate will not work. Quick Crate requires a Physical Crate.)
      InGUI: false
      #Slot the item is in the GUI.
      Slot: 21
      #Enables/Disables the Broadcasts message when they open a crate.
      OpeningBroadCast: true
      #Message that is broadcast when opening the crate.
      BroadCast: '%Prefix%&6&l%Player% &7is opening a &7&lVote Crate!&7.'
      #Item the crate is in the GUI
      Item: 'PAPER'
      #If the crate in the main /cc GUI is glowing or not.
      Glowing: true
      #Name of the item in the GUI.
      Name: '&7&lVote Crate'
      #The lore of the item in the GUI.
      Lore:
        - '&7You have &6%Keys% keys &7to open this crate with.'
        - '&7&l(&e&l!&7&l) Right click to view rewards.'
      Preview:
        #Turn on and off the preview for this crate.
        Toggle: true
        #How many lines the previewChest should have. Including Header and Bottom (Between 3 and 6)
        ChestLines: 6
        Glass:
          #Turn the glass boarder in the preview on and off.
          Toggle: true
          #The item that shows in the boarder. Can be glass or any other item.
          Item: 'GRAY_STAINED_GLASS_PANE'
      PhysicalKey:
        #Name of the Key.
        Name: '&7&lVote Crate &b&lKey'
        #Lore of the Key.
        Lore:
          - '&7A special Key'
          - '&7For a Vote Crate.'
        #The item the key is.
        Item: 'TRIPWIRE_HOOK'
        #Makes the key look enchanted.
        Glowing: true
        #Settings for the holograms.
      Hologram:
        #Toggle on and off the holograms for the crates.
        Toggle: true
        #The height of the hologram above the crate.
        Height: 1.5
        #The message that will be displayed.
        Message:
          - '&7&lVote Crate'
      #All the prizes that can be gotten in the Crate.
      Prizes:
        1:
          #Name of the item shown by the crate.
          DisplayName: '&7&lBlue Diamond'
          #Item that is shown by the crate.
          DisplayItem: 'DIAMOND'
          #The amount that is displayed.
          DisplayAmount: 16
          #Lore will be shown in rewards GUI.
          Lore:
            - '&7Get some diamonds!'
            - '&6&lChance: &c&l30%'
          #Adds enchantments to the display item.
          DisplayEnchantments:
          #The max range that the chance will go though.
          MaxRange: 100
          #Chance of that item getting picked. It would be 40/100 chance because MaxRange is 100.
          Chance: 30
          #Firework when it is won.
          Firework: true
          #Toggle if the item has a glowing effect but doesn't have an enchantment on it.
          Glowing: false
          #Set the item to 397:3 and then add the players name for this to take effect.
          Player: ''
          #Adds the unbreaking NBT tag to the display item to allow it to have custom textures.
          Unbreakable: false
          #When set to true, tags like Armor, Unbreakable and other tags are hidden and not visible to the user.
          HideItemFlags: false
          # Items that the player wins if this prize is picked. (If you wish not to give an Item in the prize just delete the Items Section) 
          # Items: Options
          # Item:<Item Name> - The item you wish to give.
          # Amount:<Number> - Choose how many of the item you get.
          # Name:<Name> - The display name that goes on the item.
          # Lore:<Line 1>,<Line 2>,<Line 3>,<Line 4> - The lore that will go under the enchantments. Split lines with a ','
          # Unbreakable-Item:<True/False> - Will add the Unbreaking NBT tag to the item to allow custom textured items to be gained through the envoys.
          # <Enchantment>:<Level> - Choose the enchantment you want to add to the item. You can use the in-game names of the enchantment if you want. Replace the spaces in the name with "_".
          Items:
            - 'Item:DIAMOND, Amount:16, Name:&7&lBlue Diamond'
          #Commands are the commands that are run when this prize is won. (If you wish not to use a CMD in the prize just delete the Commands Section)
          #You can use %Player% to get the player that won the prize.
          Commands:
            - 'broadcast &6&l%Player% &7has just won some Blue Diamonds!.'
          #Messages: option allows you to send players messages and not have to pm them with commands.
          #If you do not wish to have players get messaged that they won this prize then just remove the Messages: option.
          Messages:
            - '&7You just won some &7&lBlue Diamonds&7.'
          #This allows for one time winnable prizes. If a player has one of the permissions then they will not be able to win it.
          BlackListed-Permissions: [ ]
          #This allows users who have won the same prize before to get alternative prizes. They must of a BlackListed-Permission to get a alternative prize.
          Alternative-Prize:
            #Toggle if the prize will use alternative prizes for the blacklisted permission.
            Toggle: false
            Messages: [ ]
            Commands: [ ]
            Items: [ ]
        2:
          DisplayName: '&b&l3x Vote Keys'
          DisplayItem: 'TRIPWIRE_HOOK'
          DisplayAmount: 3
          Lore:
            - '&7Win 3x Vote Keys.'
            - '&6&lChance: &c&l40%'
          MaxRange: 100
          Chance: 40
          commands:
          - 'cc give v Vote 3 %player%'
          messages:
          - '&7You just won 3x &7&lVote Keys!&7.
         3:
          DisplayName: '&b&l6x Crazy Keys!'
          DisplayItem: 'TRIPWIRE_HOOK'
          DisplayAmount: 6
          Lore:
            - '&7Win 6x Crazy Keys.'
            - '&6&lChance: &c&l30%'
          MaxRange: 100
          Chance: 30
          commands:
          - 'cc give v Crazy 6 %player%'
          messages:
          - '&7You just won 6x &7&lCrazy Keys!&7.
     
    Last edited by a moderator: Mar 28, 2021
  2. Offline

    timtower Administrator Administrator Moderator

    @NotHunterMC
    Code:
    - '&7You just won 3x &7&lVote Keys!&7.
    You never put an end quote
    Doing that a couple times
     
Thread Status:
Not open for further replies.

Share This Page