Solved TokenEnchant Fly Error [HELP!]

Discussion in 'Spigot Plugin Help' started by WarfareNetwork, Jan 16, 2020.

  1. Hi, i have this error!!!
    The enchant is working but when I put to deny the enchant fly in a region or in a world it has this error. Help me!!


    [ERROR] Cannot load plugins/TokenEnchant/enchants/Fly_config.yml

    org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping

    in 'string', line 3, column 5:

    price: 500

    ^

    expected <block end>, but found BlockSequenceStart

    in 'string', line 7, column 7:

    - pvpmina

    ^

    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:226) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:169) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:180) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at com.vk2gpz.tokenenchant.api.CEHandler.getConfigInstance(CEHandler.java:364) [TokenEnchant-15.2.2.jar:?]

    at com.vk2gpz.tokenenchant.api.PotionHandler.setConfig(PotionHandler.java:29) [TokenEnchant-15.2.2.jar:?]

    at com.vk2gpz.tokenenchant.api.EnchantHandler.<init>(EnchantHandler.java:129) [TokenEnchant-15.2.2.jar:?]

    at com.vk2gpz.tokenenchant.api.PotionHandler.<init>(PotionHandler.java:23) [TokenEnchant-15.2.2.jar:?]

    at com.vk2gpz.tokenenchant.potions.FlyPotion.<init>(FlyPotion.java:24) [TE-FlyEnchant-4.9.0%20(1).jar:?]

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_212]

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_212]

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_212]

    at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [?:1.8.0_212]

    at com.vk2gpz.tokenenchant.e.b.b(b.java:78) [TokenEnchant-15.2.2.jar:?]

    at com.vk2gpz.tokenenchant.g.a(g.java:389) [TokenEnchant-15.2.2.jar:?]

    at com.vk2gpz.tokenenchant.c.e.d.a.d(a.java:33) [TokenEnchant-15.2.2.jar:?]

    at com.vk2gpz.tokenenchant.g.h(g.java:321) [TokenEnchant-15.2.2.jar:?]

    at com.vk2gpz.tokenenchant.f.t.a(t.java:39) [TokenEnchant-15.2.2.jar:?]

    at com.vk2gpz.tokenenchant.f.t.onCommand(t.java:31) [TokenEnchant-15.2.2.jar:?]

    at com.vk2gpz.tokenenchant.f.b.onCommand(b.java:117) [TokenEnchant-15.2.2.jar:?]

    at com.vk2gpz.tokenenchant.f.b$a.execute(b$a.java:222) [TokenEnchant-15.2.2.jar:?]

    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at java.lang.Thread.run(Thread.java:813) [?:1.8.0_212]

    Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping

    in 'string', line 3, column 5:

    price: 500

    ^

    expected <block end>, but found BlockSequenceStart

    in 'string', line 7, column 7:

    - pvpmina

    ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:570) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:224) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:229) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.yaml.snakeyaml.Yaml.load(Yaml.java:369) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]

    ... 28 more

    [WARNING] [TokenEnchant] Config.yml does not have an entry for FlyPotion... skipping
     
  2. My "Fly_config.yml"

    Potions:
    Fly:
    price: 500
    max: 1
    occurrence: always
    # invalid_in_region:
    - pvpmina
    - minapvpspawn
    - minapvp
    # invalid_in_world:
    - MinaPvP
    allowed_items:
    - DIAMOND_BOOTS
    max_speed: 0.1 # value between 0.1 - 1.0. (0.2 is the default fly speed)
    default_speed: 0.1 # if not specified 0.05 will be used.

    #if a player has the following permission node, his fly own't be turned off
    fly_permission_nodes:
     
  3. remove the # before invalid_in_region and invalid_in_world
     
    • Like Like x 1
  4. You need to purchase TokenEnchant first. We won't provide any help to those who uses a leaked plugin.