[FIXED] help with config.yml

Discussion in 'Spigot Plugin Development' started by OfirTIM, Jun 14, 2015.

  1. hey guys its me OfirTIM! soo i got stuck at problem that when i made list at my config.yml and i wanna add something its does'nt want to let me and just make it fucked up!
    can someone help with it?

    [15:47:49] [Server thread/ERROR]: Cannot load plugins\AdvancedChatManagerPlus\config.yml
    org.bukkit.configuration.InvalidConfigurationException: while scanning for the next token
    found character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation)
    in 'string', line 21, column 1:
    - shitza
    ^

    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:226) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:169) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:180) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:183) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:157) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at me.OfirTIM.AdvancedChatManagerPlus.Main.<init>(Main.java:19) [advancedchatmanagerplus.jar:?]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [?:1.8.0_40]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [?:1.8.0_40]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [?:1.8.0_40]
    at java.lang.reflect.Constructor.newInstance(Unknown Source) [?:1.8.0_40]
    at java.lang.Class.newInstance(Unknown Source) [?:1.8.0_40]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:336) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:258) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.java:369) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.reload(CraftServer.java:864) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.Bukkit.reload(Bukkit.java:301) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchServerCommand(CraftServer.java:753) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at net.minecraft.server.v1_7_R4.DedicatedServer.aB(DedicatedServer.java:326) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:290) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token; found character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation); in 'string', line 21, column 1:
    - shitza
    ^
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:420) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.parser.ParserImpl$ParseIndentlessSequenceEntry.produce(ParserImpl.java:530) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:157) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:400) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) ~[spigot.jar:git-Spigot-1.7.9-R0.2-207-g03373bb]
    ... 27 more

    ---------------------------------
    thanks for answers, OfirTIM
    ---------------------------------


    BTW! this plugin will be sold at spigot i just need this little push about something :D
     
    #1 OfirTIM, Jun 14, 2015
    Last edited: Jun 14, 2015
  2. Code (Java):
    [15:47:49 ERROR]: Cannot load plugins\AdvancedChatManagerPlus\config.yml
    org.bukkit.configuration.InvalidConfigurationException: while scanning for the
    ext token
    found character '\t(TAB)' that cannot start any token. (Do not use \t
    AB) for indentation)
    in 'string', line 21, column 1:
    - shitza
    ^
    You have started line 21 with a tab, which is a big no no in YAML. Use spaces.
     
  3. soo what should i do?
    can you help me out?
     
  4. Remove the tab character (\t) on line 21, and use spaces.
     
  5. Remove the giant space and then manually press the spacebar
     
    • Optimistic Optimistic x 1
  6. FIXEDDDD!
    OMFG! THANK YOU!
     
  7. Wants to sell plugin, can't even fix YAML.[​IMG]
     
    • Agree Agree x 1
    • Funny Funny x 1
  8. hey hey hey... have any problem? because i dont... soo Stop being idiot
     
    • Funny Funny x 1
  9. I do have a problem with it, yes. Don't sell that which you can't maintain yourself - learning how to read stack traces might be recommended before selling shit.
     
    • Agree Agree x 2
  10. dont say i am selling shit... you never seen one of my plugins... soo STFU
     
    • Funny Funny x 1
  11. (Shit is a word I use for 'anything', it wasn't directly targeted at plugin quality - I'm not that horrible)
     
    • Agree Agree x 1
  12. I did:
    [​IMG]
     
  13. #13 smrkn, Jun 15, 2015
    Last edited: Jun 15, 2015
  14. please help me im having this error
     
  15. 22.01 09:55:55 [Server] ERROR Cannot load plugins/CustomCrates/config.yml 22.01 09:55:55 [Server] INFO org.bukkit.configuration.InvalidConfigurationException: while scanning for the next token 22.01 09:55:55 [Server] INFO found character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation) 22.01 09:55:55 [Server] INFO in 'string', line 204, column 1: 22.01 09:55:55 [Server] INFO name: '&b1xGod-Kit' 22.01 09:55:55 [Server] INFO ^ 22.01 09:55:55 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:56) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:184) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:130) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:179) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:188) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at me.icodetits.customCrates.commands.ReloadCommand.onCommand(ReloadCommand.java:24) [CustomCrates.jar:?] 22.01 09:55:55 [Server] INFO at me.icodetits.customCrates.commandmanager.CrateCommandManager.onCommand(CrateCommandManager.java:81) [CustomCrates.jar:?] 22.01 09:55:55 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:647) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1358) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1193) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121] 22.01 09:55:55 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:732) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:668) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:567) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121] 22.01 09:55:55 [Server] INFO Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token 22.01 09:55:55 [Server] INFO found character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation) 22.01 09:55:55 [Server] INFO in 'string', line 204, column 1: 22.01 09:55:55 [Server] INFO name: '&b1xGod-Kit' 22.01 09:55:55 [Server] INFO ^ 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:420) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:558) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:224) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.yaml.snakeyaml.Yaml.load(Yaml.java:369) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:54) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO ... 22 more 22.01 09:55:55 [Server] ERROR null 22.01 09:55:55 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'crate' in plugin CustomCrates v1.7.10 22.01 09:55:55 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:647) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1358) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1193) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121] 22.01 09:55:55 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:732) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:668) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:567) [spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121] 22.01 09:55:55 [Server] INFO Caused by: java.lang.NoSuchMethodError: org.bukkit.Bukkit.getOnlinePlayers()[Lorg/bukkit/entity/Player; 22.01 09:55:55 [Server] INFO at me.icodetits.customCrates.commands.ReloadCommand.onCommand(ReloadCommand.java:30) ~[?:?] 22.01 09:55:55 [Server] INFO at me.icodetits.customCrates.commandmanager.CrateCommandManager.onCommand(CrateCommandManager.java:81) ~[?:?] 22.01 09:55:55 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot56.jar:git-Spigot-72c2605-709783c] 22.01 09:55:55 [Server] INFO ... 15 more
     
  16. here is my config file
     
  17. Crates:
    Vote:
    ParticleEffect:
    enabled: false
    onlywhenopening: false
    particle: LAVA
    Key:
    material: TRIPWIRE_HOOK
    name: '&8&l(&a&o&lVote Crate Key&8&l)'
    enchanted: true
    lore:
    - '&7&oThis is a %Crate% Crate key'
    Sound:
    movingSound: WOOD_CLICK
    prizeSound: BAT_TAKEOFF
    closeInventorySound: CHEST_CLOSE
    LeftClickInv:
    enabled: true
    enablechancelore: true
    lore:
    - '&7Chance: &a&l%chance%%'
    name: '&cItems for %crate%'
    OpenInv:
    name: '&cOpening %crate%'
    PrizeItem:
    material: REDSTONE_TORCH_ON
    name: '&aPrize'
    enchanted: false
    PreCommands:
    - msg:%prefix%Now opening %crate% crate.
    BlockType: ENDER_CHEST
    Items:
    '1':
    enchanted: false
    material: Sunflower
    name: '&a$500-Cash'
    chance: 40
    amount: 1
    commands:
    - eco give %player% 500
    '2':
    enchanted: false
    material: Sunflower
    name: '&a$1k-Cash'
    chance: 35
    amount: 1
    commands:
    - eco give %player% 1000
    '3':
    enchanted: false
    material: Sunflower
    name: '&a$5k-Cash'
    chance: 30
    amount: 1
    commands:
    - eco give %player% 5000
    '4':
    enchanted: false
    material: Sunflower
    name: '&a$10k-Cash'
    chance: 25
    amount: 1
    commands:
    - eco give %player% 10000
    '5':
    enchanted: false
    material: Sunflower
    amount: 1
    chance: 20
    name: '&a20k-Cash'
    commands:
    - eco give %player% 20000
    '6':
    enchanted: true
    material: book
    amount: 1
    name: '&aCoal-Rank'
    chance: 1
    commands:
    - coupons give coal 1
    '7':
    enchanted: true
    material: tripwire_hook
    amount: 1
    name: '&a1xKeyCrate-Key'
    chance: 1
    commands:
    - crate givekey Key
    '8':
    enchanted: true
    material: tripwire_hook
    amount: 1
    name: '&a1xCommandKey-Crate'
    chance: 1
    commands:
    - crate givekey Command 1
    '9':
    enchanted: true
    material: tripwire_hook
    amount: 5
    name: '&a5xExpCrate-key'
    chance: 20
    commands:
    - crate givekey %player% Exp 5
    '10':
    enchanted: true
    material: tripwire_hook
    amount: 5
    name: '&a2xRankupCrate-Key'
    chance: 30
    commands:
    - crate givekey %player% Rankup 5
    '11':
    enchanted: true
    material: tripwire_hook
    amount: 1
    name: '&a1xPremiumCrate-Key'
    chance: 2
    commands:
    - crate givekey %player% Premium 1
    '12':
    enchanted: true
    material: tripwire_hook
    amount: 1
    name: '&a1xPremiumCrate-Key'
    chance: 5
    commands:
    - crate givekey %player% Premium 1
    '13':
    enchanted: true
    material: Steak
    amount: 1
    name: '&a1xFoodStack'
    chance: 30
    commands:
    - kit food %player%

    Premium:
    ParticleEffect:
    enabled: false
    onlywhenopening: false
    particle: LAVA
    Key:
    material: TRIPWIRE_HOOK
    name: '&3Premium Crate Key'
    enchanted: true
    lore:
    - '&7&oThis is a %Crate% Crate key'
    Sound:
    movingSound: WOOD_CLICK
    prizeSound: BAT_TAKEOFF
    closeInventorySound: CHEST_CLOSE
    LeftClickInv:
    enabled: true
    enablechancelore: true
    lore:
    - '&7Chance: &a&l%chance%%'
    name: '&cItems for %crate%'
    OpenInv:
    name: '&cOpening %crate%'
    PrizeItem:
    material: REDSTONE_TORCH_ON
    name: '&aPrize'
    enchanted: false
    PreCommands:
    - msg:%prefix%Now opening %crate% crate.
    BlockType: ENDER_CHEST
    Items:
    '1':
    enchanted: true
    material: Sunflower
    name: '&3$1M-Cash'
    chance: 50
    amount: 1
    commands:
    - eco give %player% 1000000
    '2':
    enchanted: true
    material: Sunflower
    name: '&3$5M-Cash'
    chance: 30
    amount: 1
    commands:
    - eco give %player% 5000000
    '3':
    enchanted: true
    material: Sunflower
    name: '&3$10M-Cash'
    chance: 15
    amount: 1
    commands:
    - eco give %player% 10000000
    '4':
    enchanted: true
    material: diamond_chestplate
    name: '&a1xEnder-Kit'
    chance: 15
    amount: 1
    commands:
    - kit Coal %player%
    '5':
    enchanted: true
    material: diamond_chestplate
    name: '&b1xGod-Kit'
    chance: 10
    amount: 1
    commands:
    - kit God %player%
    '6':
    enchanted: true
    material: diamond_chestplate
    amount: 1
    name: '&c1xSkymage-Kit'
    chance: 5
    commands:
    - kit Skymage %player%
    '7':
    enchanted: true
    material: Book
    amount: 1
    name: '&0Coal-Rank'
    chance: 30
    commands:
    - coupons give %player% Coal 1
    '8':
    enchanted: true
    material: Book
    amount: 1
    name: '&7Iron Rank'
    chance: 20
    commands:
    - coupons give %player% Iron 1
    '9':
    enchanted: true
    material: Book
    amount: 1
    name: '&6Gold Rank'
    chance: 10
    commands:
    - coupons give %player% Gold 1
    '10':
    enchanted: true
    material: tripwire_hook
    amount: 5
    name: '&a5xKitCrate-Key'
    chance: 30
    commands:
    - crate givekey %player% Kit 5
    '11':
    enchanted: true
    material: tripwire_hook
    amount: 5
    name: '&a5xCommandCrate-Key'
    chance: 20
    commands:
    - crate givekey %player% Command 5
    '12':
    enchanted: true
    material: tripwire_hook
    amount: 5
    name: '&35xKeyCrate-Key'
    chance: 10
    commands:
    - crate givekey %player% Key 5
    '13':
    enchanted: true
    material: tripwire_hook
    amount: 1
    name: '&32xPremiumCrate-Key'
    chance: 1
    commands:
    - crate givekey %player% Premium 2
    '14':
    enchanted: true
    material: tripwire_hook
    amount: 2
    name: '&c2xPremiumCrate-Key'
    chance: 1
    commands:
    - crate givekey %player% Premium 2
    '15':
    enchanted: true
    material: tripwire_hook
    amount: 10
    name: '&510xExp-Key'
    chance: 38
    commands:
    - crate givekey %player% Exp 10
    '16':
    enchanted: true
    material: tripwire_hook
    amount: 10
    name: '&a10xRankupCrate-Key'
    chance: 49
    commands:
    - crate givekey %player% Rankup 10
    '17':
    enchanted: true
    material: tripwire_hook
    amount: 1
    name: '&a10xMoneyCrate-Key'
    chance: 32
    commands:
    - crate givekey %player% Money 10
    Rankup:
    ParticleEffect:
    enabled: false
    onlywhenopening: false
    particle: LAVA
    Key:
    material: TRIPWIRE_HOOK
    name: '&cRankup Crate Key'
    enchanted: true
    lore:
    - '&7&oThis is a %Crate% Crate key'
    Sound:
    movingSound: WOOD_CLICK
    prizeSound: BAT_TAKEOFF
    closeInventorySound: CHEST_CLOSE
    LeftClickInv:
    enabled: true
    enablechancelore: true
    lore:
    - '&7Chance: &a&l%chance%%'
    name: '&cItems for %crate%'
    OpenInv:
    name: '&cOpening %crate%'
    PrizeItem:
    material: REDSTONE_TORCH_ON
    name: '&aPrize'
    enchanted: false
    PreCommands:
    - msg:%prefix%Now opening %crate% crate.
    BlockType: ENDER_CHEST
    Items:
    '1':
    enchanted: true
    material: tripwire_hook
    name: '&d1xRankupCrate-Key'
    chance: 50
    amount: 1
    commands:
    - crate givekey %player% Rankup 1
    '2':
    enchanted: true
    material: tripwire_hook
    name: '&b1xExpCrate-Key'
    chance: 40
    amount: 1
    commands:
    - crate givekey %player% Exp 1
    '3':
    enchanted: true
    material: tripwire_hook
    name: '&61xMoneyCrate-Key'
    chance: 15
    amount: 1
    commands:
    - crate givekey %player% Money 1
    '4':
    enchanted: true
    material: tripwire_hook
    name: '&e1xVoteCrate-Key'
    chance: 20
    amount: 1
    commands:
    - crate givekey %player% Vote 1
    '5':
    enchanted: true
    material: Barrier
    amount: 1
    name: '&c&o&l1x-None-Coupon'
    chance: 30
    commands:
    - msg %player% Sorry You Got Nothing
    Exp:
    ParticleEffect:
    enabled: false
    onlywhenopening: false
    particle: LAVA
    Key:
    material: TRIPWIRE_HOOK
    name: '&5Exp Crate Key'
    enchanted: true
    lore:
    - '&7&oThis is a %Crate% Crate key'
    Sound:
    movingSound: WOOD_CLICK
    prizeSound: BAT_TAKEOFF
    closeInventorySound: CHEST_CLOSE
    LeftClickInv:
    enabled: true
    enablechancelore: true
    lore:
    - '&7Chance: &a&l%chance%%'
    name: '&cItems for %crate%'
    OpenInv:
    name: '&cOpening %crate%'
    PrizeItem:
    material: REDSTONE_TORCH_ON
    name: '&aPrize'
    enchanted: false
    PreCommands:
    - msg:%prefix%Now opening %crate% crate.
    BlockType: ENDER_CHEST
    Items:
    '1':
    enchanted: true
    material: tripwire_hook
    name: '&b200-Exp'
    chance: 30
    amount: 1
    commands:
    - xp 200 %player%
    '2':
    enchanted: true
    material: Paper
    name: '&b500-Exp'
    chance: 25
    amount: 1
    commands:
    - xp 500 %player%
    '3':
    enchanted: true
    material: Paper
    name: '&b1k-Exp'
    chance: 15
    amount: 1
    commands:
    - xp 1000 %player%
    '4':
    enchanted: true
    material: Paper
    name: '&a5k-Exp'
    chance: 10
    amount: 1
    commands:
    - xp 5000 %player%
    '5':
    enchanted: true
    material: Paper
    amount: 1
    chance: 5
    name: '&a10k-Exp'
    commands:
    - xp 10000 %player%
    '6':
    enchanted: false
    material: barrier
    amount: 1
    name: '&b&o&l1xNone-Coupon'
    chance: 30
    commands:
    - msg %player% GG u Got Nothing!
    Money:
    ParticleEffect:
    enabled: false
    onlywhenopening: false
    particle: LAVA
    Key:
    material: TRIPWIRE_HOOK
    name: '&6Money Crate Key'
    enchanted: true
    lore:
    - '&7&oThis is a %Crate% Crate key'
    Sound:
    movingSound: WOOD_CLICK
    prizeSound: BAT_TAKEOFF
    closeInventorySound: CHEST_CLOSE
    LeftClickInv:
    enabled: true
    enablechancelore: true
    lore:
    - '&7Chance: &a&l%chance%%'
    name: '&cItems for %crate%'
    OpenInv:
    name: '&cOpening %crate%'
    PrizeItem:
    material: REDSTONE_TORCH_ON
    name: '&aPrize'
    enchanted: false
    PreCommands:
    - msg:%prefix%Now opening %crate% crate.
    BlockType: ENDER_CHEST
    Items:
    '1':
    enchanted: true
    material: Sunflower
    name: '&6$5k-Cash'
    chance: 30
    amount: 1
    commands:
    - eco give %player% 5000
    '2':
    enchanted: true
    material: Sunflower
    name: '&6$10k-Cash'
    chance: 25
    amount: 1
    commands:
    - eco give %player% 10000
    '3':
    enchanted: true
    material: Sunflower
    name: '&6$15k-Cash'
    chance: 15
    amount: 1
    commands:
    - eco give %player% 15000
    '4':
    enchanted: true
    material: Sunflower
    name: '&6$20k-Cash'
    chance: 10
    amount: 1
    commands:
    - eco give %player% 20000
    '5':
    enchanted: true
    material: Sunflower
    amount: 1
    chance: 5
    name: '&6$50k-Cash'
    commands:
    - eco give %player% 50000
    '6':
    enchanted: true
    material: Sunflower
    amount: 1
    name: '&6$100k-Cash'
    chance: 1
    commands:
    - eco give %player% 100000
    '7':
    enchanted: true
    material: Barrier
    amount: 1
    name: '&4&o&lNone-Coupon'
    chance: 50
    commands:
    - coupons give %player% none 1
    - msg %player% Sorry u Got Nothing
    Kits:
    ParticleEffect:
    enabled: false
    onlywhenopening: false
    particle: LAVA
    Key:
    material: TRIPWIRE_HOOK
    name: '&dKits Crate Key'
    enchanted: true
    lore:
    - '&7&oThis is a %Crate% Crate key'
    Sound:
    movingSound: WOOD_CLICK
    prizeSound: BAT_TAKEOFF
    closeInventorySound: CHEST_CLOSE
    LeftClickInv:
    enabled: true
    enablechancelore: true
    lore:
    - '&7Chance: &a&l%chance%%'
    name: '&cItems for %crate%'
    OpenInv:
    name: '&cOpening %crate%'
    PrizeItem:
    material: REDSTONE_TORCH_ON
    name: '&aPrize'
    enchanted: false
    PreCommands:
    - msg:%prefix%Now opening %crate% crate.
    BlockType: ENDER_CHEST
    Items:
    '1':
    enchanted: true
    material: diamond_chestplate
    name: '&01x-CoalKit'
    chance: 70
    amount: 1
    commands:
    - kit coal %player%
    '2':
    enchanted: true
    material: diamond_chestplate
    name: '&71x-IronKit'
    chance: 60
    amount: 1
    commands:
    - kit Iron %player%
    '3':
    enchanted: true
    material: diamond_chestplate
    name: '&61x-GoldKit'
    chance: 50
    amount: 1
    commands:
    - kit Gold %player%
    '4':
    enchanted: true
    material: diamond_chestplate
    name: '&c1x-VirusKit'
    chance: 35
    amount: 1
    commands:
    - kit Virus %player%
    '5':
    enchanted: true
    material: diamond_chestplate
    amount: 1
    chance: 25
    name: '&51x-VoidKit'
    commands:
    - kit Void %player%
    '6':
    enchanted: true
    material: diamond_chestplate
    amount: 1
    name: '&51x-EnderKit'
    chance: 15
    commands:
    - kit Ender %player%
    '7':
    enchanted: true
    material: diamond_chestplate
    amount: 1
    name: '&41x-Godkit'
    chance: 10
    commands:
    - kit God %player%
    '8':
    enchanted: true
    material: diamond_chestplate
    amount: 1
    name: '&aSky&bMage'
    chance: 5
    commands:
    - kit Skymage %player%
    Keys:
    ParticleEffect:
    enabled: false
    onlywhenopening: false
    particle: LAVA
    Key:
    material: TRIPWIRE_HOOK
    name: '&bKey Crate Key'
    enchanted: true
    lore:
    - '&7&oThis is a %Crate% Crate key'
    Sound:
    movingSound: WOOD_CLICK
    prizeSound: BAT_TAKEOFF
    closeInventorySound: CHEST_CLOSE
    LeftClickInv:
    enabled: true
    enablechancelore: true
    lore:
    - '&7Chance: &a&l%chance%%'
    name: '&cItems for %crate%'
    OpenInv:
    name: '&cOpening %crate%'
    PrizeItem:
    material: REDSTONE_TORCH_ON
    name: '&aPrize'
    enchanted: false
    PreCommands:
    - msg:%prefix%Now opening %crate% crate.
    BlockType: ENDER_CHEST
    Items:
    '1':
    enchanted: true
    material: tripwire_hook
    name: '&e1xVoteCrate-Key'
    chance: 30
    amount: 1
    commands:
    - crate givekey %player% Vote 1
    '2':
    enchanted: true
    material: tripwire_hook
    name: '&31xPremiumCrate-Key'
    chance: 5
    amount: 1
    commands:
    - crate givekey Premium 1
    '3':
    enchanted: true
    material: tripwire_hook
    name: '&61xMoneyCrate-Key'
    chance: 40
    amount: 1
    commands:
    - crate givekey %player% Money 1
    '4':
    enchanted: true
    material: tripwire_hook
    name: '&b1xExpCrate-Key'
    chance: 55
    amount: 1
    commands:
    - crate givekey %player% Exp 1
    '5':
    enchanted: true
    material: tripwire_hook
    amount: 1
    chance: 50
    name: '&d1xRankupCrate-Key'
    commands:
    - crate givekey %player% Rankup 1
    '6':
    enchanted: true
    material: tripwire_hook
    amount: 1
    chance: 20
    name: '&a1xKitCrate-Key'
    commands:
    - crate givekey %player% Kit 1
    '7':
    enchanted: true
    material: tripwire_hook
    amount: 1
    chance: 5
    name: '&a1xCommandCrate-Key'
    commands:
    - crate givekey Command 1
    '8':
    enchanted: true
    material: tripwire_hook
    amount: 1
    chance: 10
    name: '&a1xKeyCrate-Key'
    commands:
    - crate givekey Key 1
     
  18. Problems, and u should open ur own post for ur problem , do not post ur own problem at other people's post