Enchantments
Jambohamb opened this issue · 5 comments
Well this problem comes again and i undo the tab and i did only with space and it seemed right but in the console the same error comes again! i'll send you again my log and my kits.yml file:
2013-09-14 15:52:34 [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 31:
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 31:
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
2013-09-14 15:52:34 [INFO] [BattleKits] length is 6226
2013-09-14 15:52:34 [INFO] [BattleKits] length is 942
2013-09-14 15:52:34 [INFO] [BattleKits] length is 268
2013-09-14 15:52:34 [INFO] [BattleKits] Not enabling restrictions due to config setting
2013-09-14 15:52:34 [INFO] [BattleKits] Vault found.
2013-09-14 15:52:34 [INFO] [BattleKits] Disabling tag functionality as TagAPI is not installed.
2013-09-14 15:52:34 [INFO] [BattleKits] BattleKits (2.0.3) has been enabled!
2013-09-14 15:52:34 [INFO] [ChatManager] Enabling ChatManager v1.19.1
2013-09-14 15:52:34 [INFO] [ChatManager] ChatManager disabled. Check config.yml!
2013-09-14 15:52:34 [INFO] [ChatManager] Disabling ChatManager v1.19.1
2013-09-14 15:52:34 [INFO] [ChatManager] ChatManager disabled!
2013-09-14 15:52:34 [INFO] [EssentialsProtect] Enabling EssentialsProtect v2.10.1
2013-09-14 15:52:34 [INFO] Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
2013-09-14 15:52:34 [INFO] [ServerSigns] Enabling ServerSigns v2.8
2013-09-14 15:52:34 [INFO] [ServerSigns] Successfully hooked in into Vault
2013-09-14 15:52:34 [INFO] [ServerSigns] Version 2.8 is now enabled.
2013-09-14 15:52:34 [INFO] [EssentialsSpawn] Enabling EssentialsSpawn v2.10.1
2013-09-14 15:52:34 [INFO] [Multiverse-Portals] Enabling Multiverse-Portals v2.4-b548
2013-09-14 15:52:34 [INFO] [Multiverse-Portals] - Version 2.4-b548 Enabled - By Rigby and fernferret
2013-09-14 15:52:34 [INFO] [ClearLag] No updates found!
2013-09-14 15:52:34 [INFO] [Multiverse-Portals] 3 - Portals(s) loaded
2013-09-14 15:52:34 [INFO] [xAuth] Enabling xAuth v2.0.26
2013-09-14 15:52:35 [WARNING] [xAuth] -------- xAuth Updater --------
2013-09-14 15:52:35 [WARNING] [xAuth] This server appears to be running an older version
2013-09-14 15:52:35 [WARNING] [xAuth] of xAuth. Version 2.4.0 is now available.
2013-09-14 15:52:35 [WARNING] [xAuth]
2013-09-14 15:52:35 [WARNING] [xAuth] Priority: HIGH
2013-09-14 15:52:35 [WARNING] [xAuth] Details: http://github.com/lycano/xAuth/
2013-09-14 15:52:35 [WARNING] [xAuth] Download: http://dev.bukkit.org/server-mods/xAuth/
2013-09-14 15:52:35 [WARNING] [xAuth] -------------------------------
2013-09-14 15:52:35 [INFO] [xAuth] PermissionAlias backend: 'pex' registered!
2013-09-14 15:52:35 [INFO] [xAuth] PermissionAlias backend: 'gm' registered!
2013-09-14 15:52:35 [INFO] [xAuth] PermissionAlias backend: 'bukkit' registered!
2013-09-14 15:52:35 [INFO] [xAuth] Attempting to use supported permissions plugin 'GroupManager'
2013-09-14 15:52:35 [WARNING] [xAuth] This plugin is not ready yet.
2013-09-14 15:52:35 [INFO] [xAuth] Initializing bukkit backend
2013-09-14 15:52:35 [INFO] [xAuth] Attempting to use supported permissions plugin 'PermissionsEx'
2013-09-14 15:52:35 [WARNING] [xAuth] This plugin is not ready yet.
2013-09-14 15:52:35 [INFO] [xAuth] Initializing bukkit backend
2013-09-14 15:52:35 [INFO] [xAuth] Config node permissions.backend changed to 'pex'
2013-09-14 15:52:35 [INFO] [xAuth] Initializing pex backend
2013-09-14 15:52:35 [WARNING] [xAuth] This plugin is not ready yet.
2013-09-14 15:52:35 [INFO] [xAuth] Attached to PermissionsEx version 1.19.5
2013-09-14 15:52:35 [INFO] [xAuth] Successfully established connection to H2 database
2013-09-14 15:52:35 [INFO] [xAuth] v2.0.26 Enabled!
2013-09-14 15:52:35 [INFO] [EssentialsChat] Enabling EssentialsChat v2.10.1
2013-09-14 15:52:35 [INFO] [Factions] Enabling Factions v1.6.9.4
2013-09-14 15:52:35 [INFO] [Factions v1.6.9.4] === ENABLE START ===
2013-09-14 15:52:35 [INFO] [Factions v1.6.9.4] Loading board from disk
2013-09-14 15:52:35 [INFO] [Factions v1.6.9.4] Found and will integrate chat with EssentialsChat v2.10.1
2013-09-14 15:52:35 [INFO] [Factions v1.6.9.4] Economy integration through Vault plugin successful.
2013-09-14 15:52:35 [INFO] [Factions v1.6.9.4] NOTE: Economy is disabled. You can enable it with the command: f config econEnabled true
2013-09-14 15:52:35 [INFO] [Factions v1.6.9.4] === ENABLE DONE (Took 141ms) ===
2013-09-14 15:52:35 [INFO] [Lockette] Enabled link to plugin Factions for Groups, version 1.6.9.4
2013-09-14 15:52:36 [INFO] Server permissions file permissions.yml is empty, ignoring it
2013-09-14 15:52:36 [INFO] Done (9,985s)! For help, type "help" or "?"
2013-09-14 15:52:51 [INFO] DimitrisGR123[/127.0.0.1:2585] logged in with entity id 210 at ([world] -2904.5421778417744, 75.95381844839798, -669.9906145506067)
2013-09-14 15:52:57 [INFO] DimitrisGR123 issued server command: /day
2013-09-14 15:52:59 [INFO] DimitrisGR123 issued server command: /kit
2013-09-14 15:52:59 [SEVERE] Unhandled exception executing command 'kit' in plugin BattleKits v2.0.3
org.bukkit.command.CommandException: Unhandled exception executing command 'kit' in plugin BattleKits v2.0.3
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:334)
at com.earth2me.essentials.Essentials.onCommand(Essentials.java:319)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:523)
at net.minecraft.server.v1_5_R3.PlayerConnection.handleCommand(PlayerConnection.java:965)
at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.java:883)
at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:840)
at net.minecraft.server.v1_5_R3.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292)
at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109)
at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35)
at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581)
at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226)
at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NullPointerException
at com.lavacraftserver.BattleKits.CommandBattleKits.onCommand(CommandBattleKits.java:52)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 18 more
and the kit file:
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'
i think there is a prob in the items of pyrarcher because it has a big red line from the start of pyrarcher's item section till the end of the item section! again e-mail at [email protected]
If you get that error, it means there are tabs in use in the config. Run the file through http://yaml-online-parser.appspot.com/
can i just delete the section which is red=tabs and wirte it again with
spaces? oh can i use the button enter for this or not?
2013/9/14 lol768 [email protected]
If you get that error, it means there are tabs in use in the config. Run
the file through http://yaml-online-parser.appspot.com/—
Reply to this email directly or view it on GitHubhttps://github.com//issues/159#issuecomment-24444934
.
can you please tell me how to make it right? i don't know i did everything
with spaces but other problems come up!
2013/9/14 lol768 [email protected]
The former
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/159#issuecomment-24451910
.