please help!!!!!!! my console keeps saying 26.03 19:48:49 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchServerCommand(CraftServer.java:512) 26.03 19:48:49 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:523) 26.03 19:48:49 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:187) 26.03 19:48:49 [Server] INFO at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) 26.03 19:48:49 [Server] INFO at org.bukkit.Bukkit.reload(Bukkit.java:184) 26.03 19:48:49 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.reload(CraftServer.java:603) 26.03 19:48:49 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugins(CraftServer.java:239) 26.03 19:48:49 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132) 26.03 19:48:49 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:247) 26.03 19:48:49 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml 26.03 19:48:49 [Server] SEVERE Could not load 'plugins/ctplugin.jar' in folder 'plugins' im not sure why. this is my first time trying to make a plugin but i cant figure out what im doing wrong!!!! i will upload a zip of all my files. please take a look and see if you can help me. P.S. - im not sure what this plugin will do yet. im just trying to get something to load so i can see if im on the right track
spherz Also, that is not the WHOLE stacktrace, please post the WHOLE stacktrace, and your plugin.yml..
This is enough of the stacktrace to find a solution: This suggests that there is something spelled wrong or missing in the description in the plugin.yml of the plugin "ctplugin", maybe a wrong character or a tabulator character.
ill copy and paste all files for you plugin.yml: name: Ct Plugin main: com.spherzcreative.ctplugin.CtPlugin version: 1.5.1 CtPlugin.java: package com.spherzcreative.ctplugin; import org.bukkit.plugin.java.JavaPlugin; public final class CtPlugin extends JavaPlugin { } (the ctplugin.java is in a package called com.spherzcreative.ctplugin) and i also have the bukkit api there too. im following the wiki exactly. my file upload didnt work with the first post i made i put the info in a reply EDIT by Moderator: merged posts, please use the edit button instead of double posting.
kreashenz i added that and tested it and it still says invalid plugin.yml this is the console : 27.03 07:02:28 [Multicraft] Skipped 78 lines due to rate limit (30/s) 27.03 07:02:24 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchServerCommand(CraftServer.java:512) 27.03 07:02:24 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:523) 27.03 07:02:24 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:187) 27.03 07:02:24 [Server] INFO at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) 27.03 07:02:24 [Server] INFO at org.bukkit.Bukkit.reload(Bukkit.java:184) 27.03 07:02:24 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.reload(CraftServer.java:603) 27.03 07:02:24 [Server] INFO at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugins(CraftServer.java:239) 27.03 07:02:24 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132) 27.03 07:02:24 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:247) 27.03 07:02:24 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml 27.03 07:02:24 [Server] SEVERE Could not load 'plugins/ctplugin.jar' in folder 'plugins' i tried to even change the package name to a unique name (not like com.soemthing.something.etc.) but nothing changed still not loading. by any chance could anyone setup a template (liek the basic thing) with just a unique package name not com.blahblahblah (that works) so i can see what it is supposed to look like so i can try to match it with mine to see where i went wrong? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
A template ? This is my template for basic plugins. Code:Java package com.gmail.chloepika.plugins.debug; import org.bukkit.Bukkit;import org.bukkit.command.Command;import org.bukkit.command.CommandSender;import org.bukkit.event.Listener;import org.bukkit.plugin.java.JavaPlugin; public class Debug extends JavaPlugin implements Listener{ public void onEnable() { Bukkit.getServer().getPluginManager().registerEvents(this, this); } public void onDisable() { } public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { return false; }} My template plugin.yml Code: main: com.gmail.chloepika.plugins.debug.Debug name: Debug version: 1.0 author: Chloe-chan description: -no desc-
Just a note that the Plugin.yml is case sensitive. (not the inside just the name) so dont use: Plugin.YML use: plugin.yml
when i make the class file, if the name of the plugin is ctplugin (note case for everything) can the main class file be names CtPlugin or does it HAVE to be ctplugin? if my plugins name is ctplugin (note case) can the main .java file be CtPlugin.java? or no? im also gonna try something different to check if that works EDIT by Moderator: merged posts, please use the edit button instead of double posting.
i just figured it out i reread through the whole thing again. i realized i forgot to EXPORT it into a jar so thats where i went wrong!! THANKS SO MUCH EVERYONE FOR YOUR CONSIDERATE HELP!!!!!