BattleKits

BattleKits

250k Downloads

Enchantments

Jambohamb opened this issue · 3 comments

commented

When i put the enchant chestplateEnchant: 1:2 then ingame it won't let me have it and i mean almost all the oenchant of items can you help me? i'll send you my config.

kits:
archer:
active-in: all
commands:
- 'rpotion slowness '
- 'rpotion speed '
- 'rpotion dr '
- 'rpotion nightvision '
- 'rpotion invisibility '
items:
helmet: chainmail
chestplate: chainmail
leggings: chainmail
boots: chainmail
helmetColor: '#FF0000'
chestplateColor: '#FFFF00'
leggingColor: '#FF00FF'
bootColor: '#0000FF'
bootsEnchant: 2:4 0:2
'0': 261 48:2 51:1
'1': '282'
'2': '282'
'3': '282'
'4': '282'
'5': '282'
'6': '282'
'7': '282'
'8': '282'
'9': '282'
'10': '282'
'11': '282'
'12': '282'
'13': '282'
'14': '282'
'15': '282'
'16': '282'
'17': 262:64
'18': '282'
'19': '282'
'20': '282'
'21': '282'
'22': '282'
'23': '282'
'24': '282'
'25': '282'
'26': '282'
'27': '282'
'28': '282'
'29': '282'
'30': '282'
'31': '282'
'32': '282'
'33': '282'
'34': '282'
'35': '282'
names:
'0': '&cPower Bow'
heavy:
active-in: all
commands:
- 'potion slowness 100000 1'
- 'rpotion speed '
- 'rpotion dr '
- 'rpotion nightvision '
- 'rpotion invisibility '
items:
helmet: iron
chestplate: iron
leggings: iron
boots: iron
'0': 267 16:4
'1': '282'
'2': '282'
'3': '282'
'4': '282'
'5': '282'
'6': '282'
'7': '282'
'8': '282'
'9': '282'
'10': '282'
'11': '282'
'12': '282'
'13': '282'
'14': '282'
'15': '282'
'16': '282'
'17': '282'
'18': '282'
'19': '282'
'20': '282'
'21': '282'
'22': '282'
'23': '282'
'24': '282'
'25': '282'
'26': '282'
'27': '282'
'28': '282'
'29': '282'
'30': '282'
'31': '282'
'32': '282'
'33': '282'
'34': '282'
'35': '282'
pyro:
active-in: all
commands:
- 'rpotion slowness '
- 'rpotion speed '
- 'rpotion dr '
- 'rpotion nightvision '
- 'rpotion invisibility '
items:
helmet: leather
chestplate: leather
leggings: leather
boots: leather
'0': 267 19:1 20:1
'1': '282'
'2': '282'
'3': '282'
'4': '282'
'5': '282'
'6': '282'
'7': '282'
'8': '282'
'9': '282'
'10': '282'
'11': '282'
'12': '282'
'13': '282'
'14': '282'
'15': '282'
'16': '282'
'17': '282'
'18': '282'
'19': '282'
'20': '282'
'21': '282'
'22': '282'
'23': '282'
'24': '282'
'25': '282'
'26': '282'
'27': '282'
'28': '282'
'29': '282'
'30': '282'
'31': '282'
'32': '282'
'33': '282'
'34': '282'
'35': '282'
dosed:
active-in: all
commands:
- 'potion speed 100000 0'
- 'rpotion slowness '
- 'rpotion dr '
- 'rpotion nightvision '
- 'rpotion invisibility '
items:
helmet: leather
chestplate: leather
leggings: leather
boots: leather
'0': 276 16:1
'1': '282'
'2': '282'
'3': '282'
'4': '282'
'5': '282'
'6': '282'
'7': '282'
'8': '282'
'9': '282'
'10': '282'
'11': '282'
'12': '282'
'13': '282'
'14': '282'
'15': '282'
'16': '282'
'17': '282'
'18': '282'
'19': '282'
'20': '282'
'21': '282'
'22': '282'
'23': '282'
'24': '282'
'25': '282'
'26': '282'
'27': '282'
'28': '282'
'29': '282'
'30': '282'
'31': '282'
'32': '282'
'33': '282'
'34': '282'
'35': '282'
spy:
active-in: all
commands:
- 'potion nightvision 100000 1'
- 'potion invisibility 100000 1'
- 'potion dmgresist 100000 0'
- 'rpotion speed '
- 'rpotion slowness '
items:
'0': 276 16:1
'1': '0'
'2': '282'
'3': '282'
'4': '282'
'5': '282'
'6': '282'
'7': '282'
'8': '282'
'9': '282'
'10': '282'
'11': '282'
'12': '282'
'13': '282'
'14': '282'
'15': '282'
'16': '282'
'17': '282'
'18': '282'
'19': '282'
'20': '282'
'21': '282'
'22': '282'
'23': '282'
'24': '282'
'25': '282'
'26': '282'
'27': '282'
'28': '282'
'29': '282'
'30': '282'
'31': '282'
'32': '282'
'33': '282'
'34': '282'
'35': '282'
Pyrarcher:
active-in: all
commands:
- 'rpotion slowness '
- 'rpotion speed '
- 'rpotion dr '
- 'rpotion nightvision '
- 'rpotion invisibility '
items:
helmet: chainmail
chestplate: chainmail
leggings: chainmail
boots: chainmail
helmetColor: '#FF0000'
chestplateColor: '#FFFF00'
leggingColor: '#FF00FF'
bootColor: '#0000FF'
bootsEnchant: 2:4 0:2
chestplateEnchant: 1:2
'0': 261 48:2 51:1 50:1
'1': '282'
'2': '282'
'3': '282'
'4': '282'
'5': '282'
'6': '282'
'7': '282'
'8': '282'
'9': '282'
'10': '282'
'11': '282'
'12': '282'
'13': '282'
'14': '282'
'15': '282'
'16': '282'
'17': 262:64
'18': '282'
'19': '282'
'20': '282'
'21': '282'
'22': '282'
'23': '282'
'24': '282'
'25': '282'
'26': '282'
'27': '282'
'28': '282'
'29': '282'
'30': '282'
'31': '282'
'32': '282'
'33': '282'
'34': '282'
'35': '282'
names:
'0': '&6Power Bow'

And i'll send you my log!Here it is!

2013-09-07 21:20:33 [SEVERE] Cannot load plugins\BattleKits\kits.yml
org.bukkit.configuration.InvalidConfigurationException: while scanning for the next token
found character '\t' that cannot start any token
in "", line 270, column 1:
chestplateEnchant: 1:2
^

at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105)
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:175)
at com.lavacraftserver.BattleKits.ConfigAccessor.reloadConfig(ConfigAccessor.java:64)
at com.lavacraftserver.BattleKits.BattleKits.makeConfigs(BattleKits.java:190)
at com.lavacraftserver.BattleKits.BattleKits.onEnable(BattleKits.java:164)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugin(CraftServer.java:282)
at org.bukkit.craftbukkit.v1_5_R3.CraftServer.enablePlugins(CraftServer.java:264)
at net.minecraft.server.v1_5_R3.MinecraftServer.j(MinecraftServer.java:304)
at net.minecraft.server.v1_5_R3.MinecraftServer.e(MinecraftServer.java:283)
at net.minecraft.server.v1_5_R3.MinecraftServer.a(MinecraftServer.java:243)
at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:151)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)

Caused by: while scanning for the next token
found character '\t' that cannot start any token
in "", line 270, column 1:
chestplateEnchant: 1:2
^

at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:358)
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179)
at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:563)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53)
... 17 more

Please help me!Solve this problem!

commented

All enchantments must be surrounded with single quotes - e.g. '261 48:2 51:1 50:1'

commented

n the problem is with chestplateEnchant: 1:2 does it have to be like this :
chestplateEnchant '1:2' ?

2013/9/8 lol768 [email protected]

All enchantments must be surrounded with single quotes - e.g. '261 48:2
51:1 50:1'


Reply to this email directly or view it on GitHubhttps://github.com//issues/157#issuecomment-24019757
.

commented

No.
chestplateEnchant: '1:2'