I'm getting the following error: Code: Could not load 'plugins/._KitBerserker.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:255) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.reload(CraftServer.java:628) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.Bukkit.reload(Bukkit.java:279) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(CraftServer.java:529) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:286) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:251) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) ~[?:1.7.0_40-ea] at java.util.zip.ZipFile.<init>(ZipFile.java:214) ~[?:1.7.0_40-ea] at java.util.zip.ZipFile.<init>(ZipFile.java:144) ~[?:1.7.0_40-ea] at java.util.jar.JarFile.<init>(JarFile.java:153) ~[?:1.7.0_40-ea] at java.util.jar.JarFile.<init>(JarFile.java:117) ~[?:1.7.0_40-ea] at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:243) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] ... 13 more this is my plugin.yml: Code: name: KitBerserker main: me.rob1998.KitBerserker.KitBerserker version: 1.1 description: Allow players to access a cool kit and have cool status effects on kills. authors: - rob1998 commands: berserker: description: Get the kit. usage: /berserker permissions: kit.berserker: description: Allow player to access kit. default: op
Are there any tabs in your .yml? Make sure of that first. Also, are you sure that authors are listed with dashes before their names? Try this; Code: authors: rob1998
Maurdekye No tabs, with dashes still doesn't work EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I don't know, try removing it and see if it solves the problem?... Can't really see any faults in the file.
All of a sudden I'm getting similar problems with my plugin.yml, after adding permissions. I think that might have something to do with it.
error: Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler Code: [12:25:21 ERROR]: Could not load 'plugins/._KitBerserker.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:255) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.reload(CraftServer.java:628) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.Bukkit.reload(Bukkit.java:279) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(CraftServer.java:529) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:286) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:251) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) ~[?:1.7.0_40-ea] at java.util.zip.ZipFile.<init>(ZipFile.java:214) ~[?:1.7.0_40-ea] at java.util.zip.ZipFile.<init>(ZipFile.java:144) ~[?:1.7.0_40-ea] at java.util.jar.JarFile.<init>(JarFile.java:153) ~[?:1.7.0_40-ea] at java.util.jar.JarFile.<init>(JarFile.java:117) ~[?:1.7.0_40-ea] at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:243) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] ... 13 more Plugin.yml: Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler Code: name: KitBerserker main: me.rob1998.KitBerserker.KitBerserker version: 1.1 description: Allow players to access a cool kit and have cool status effects on kills. author: rob1998 commands: berserker: description: Get the kit. usage: /berserker permissions: kit.berserker: description: Allow player to access kit. default: op
rob1998@ You probably have some tabs, use an editor like Notepad++ and instead of pressing tab, use spaces.
No Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler Code: Could not load 'plugins/._KitBerserker.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:255) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:233) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) ~[?:1.7.0_40-ea] at java.util.zip.ZipFile.<init>(ZipFile.java:214) ~[?:1.7.0_40-ea] at java.util.zip.ZipFile.<init>(ZipFile.java:144) ~[?:1.7.0_40-ea] at java.util.jar.JarFile.<init>(JarFile.java:153) ~[?:1.7.0_40-ea] at java.util.jar.JarFile.<init>(JarFile.java:117) ~[?:1.7.0_40-ea] at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:243) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] ... 8 more plugin.yml Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler Code: name: KitBerserker main: me.rob1998.KitBerserker.KitBerserker version: 1.1 author: rob1998 commands: berserker: usage: /berserker permissions: kit.berserker: default: op but I don't think it has to do with the description see this part from the error: Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler Code: Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) ~[?:1.7.0_40-ea] at java.util.zip.ZipFile.<init>(ZipFile.java:214) ~[?:1.7.0_40-ea] at java.util.zip.ZipFile.<init>(ZipFile.java:144) ~[?:1.7.0_40-ea] at java.util.jar.JarFile.<init>(JarFile.java:153) ~[?:1.7.0_40-ea] at java.util.jar.JarFile.<init>(JarFile.java:117) ~[?:1.7.0_40-ea]
Wow, read the exception guys. It's not a yaml parse error. it's a zip exception. it can't read from the jar file. I don't believe the issue is with his code.
NO that's not it either Look at the jar filename. "._KitBerserker.jar" seems unusual no? and clearly the error message has to do with an error, READING THE ZIP FILE. not parsing the yaml. @rob1998 rename your jar to "KitBerserker.jar" and try again.
The strange thing is that I named my jar to "KitBerserker.jar" and there is no file on my hard drive called "._KitBerserker.jar"...
a filename beginning with . is hidden (on os x and linux anyway) it's probably there, you just don't see it. if you're on one of those os's. try `ls -alh` or show all hidden files.
I know, but it really isn't there. I even deleted the plugin folder and made a new one, but still not working Okay, I got it working again. I did a full reinstall and now it works.. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Could you upload the file somewhere for me to take a look inside and make sure you are exporting correctly?
okay i'm gonna give chu an example Code:java name: EChubmain: me.ShearsPig.Hub.Mainversion: 1.0 commands: Command: description: This is the where the command get's stored. when a player does /help this appears!permissions: plugin.*: description: All plugins children: plugin.command: true plugin.plugin: false plugin.plugin: description: This is your plugin permission (IF you do not have , IGNORE) default: op
I know how to make a plugin.yml file, but that wasn't the problem. I already set this discussion to Solved...