I have tried time after time to develop plugins... some simplist of the simple! But every time.... IT FAILS! I have watched videos.... way to many. Every time, it doesn't even show up in /pl So now... i ask, or plead, someone to help me! I'd love if we could IM on skype or something. or even skype.... But please, I hope someone will step forward.
1. where is your plugin yml located 2. stack trace? 3. source code of one of your simple plugins 4. what is your plugin yml
@lubbs31 Likely there will be a stack trace in your console where your plugin failed to load, post that.
Code: 21:27:39 ERROR]: Could not load 'plugins/Testing.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:150) ~[craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugins(CraftServer.java:355) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.reload(CraftServer.java:797) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.Bukkit.reload(Bukkit.java:288) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:688) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:296) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:261) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml ... 14 more [21:27:39 INFO]: Server permissions file permissions.yml is empty, ignoring it @Konato_K @mythbusterma @Samthelord1 That is the error logs. Code: package me.lubbs31.Testing; import java.util.logging.Logger; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.bukkit.plugin.java.JavaPlugin; public class Testing extends JavaPlugin { @Override public void onEnable() { Logger.getLogger("Minecraft").info("Testing is enabled!"); } @Override public void onDisable (){ } public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if(cmd.getName().equalsIgnoreCase("burn")){ Player s = (Player)sender; Player target = getServer() return true; } return false; } } That is my code in Eclipse.... Code: name: testing main: me.lubbs31.Testing description: Just a test plugin version: 1.0 author: lubbs31 commands: burn: description: burns you… That is my plugin.yml.
@lubbs31 Fix the redundant log messages and blind casting, but the real issue is that your plugin.yml file is in the wrong location.
@lubbs31 main: me.lubbs31.Testing should be main: me.lubbs31.Testing.Testing Package + class xD @lubbs31 your burn command does not do anything, you will have to add s.setFireTicks(20); (20 = 1 second, 40 = 2 seconds) there is no point of the "target" variable and on your onEnable do Logger logger = Bukkit.getLogger(); instead then do logger.info(); etc EDIT by Moderator: merged posts, please use the edit button instead of double posting.
All these videos steer my wrong.. Erm... I cannot fix this... Can someone help? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
@lubbs31 Here is a picture of one of my simple plugins in Eclipse: Hopefully that can give you some insight into how you should have your project set up.
Ok.. I did so And I fixed that main: thing... I am honestly having the hardest time... More videos... :\