What do you link the properties of Craftbukki (snap shot thing) to? The tutorial told me to link to http://www.jd.bukkit.org/apidocs/ but thats a fake link and it doesn't work. Also, I have gotten this far (not very far): http://i.imgur.com/nnOtD.png And why is my class end in .java? I specifically remember making a CLASS file, not a java. Unless CLASS files ARE java things... but are they? Last thing: Where do I start putting my command and stuff? Do I make a new folder in my src and put another class file and start making it? I want to try to make (sorry for being an ambitionous person): '/testo' that gives you a green message saying: "It works!" But then I want to try to make another command '/goaway' that stops mob-targetting for that player. /website that does the link thing for 1.2.4. Like this: I know these are big steps for a baby like me, but I want to try. For those of you who are experienced elders, I would appreciate it so much for if you could help guide me the way of Plugin Making Thank you so much.
The link is http://jd.bukkit.org/apidocs/ . Oh, and all source files are saved as .java files. And to the command stuff: you have two ways of handling commands. You can either create a new class that implements CommandExecutor, or put a method like underneath in your plugin main. Code: public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { } I'll give you some hints: sender.sendMessage and ChatColor.GREEN. if you want more help, just tag me
.java files are .class files before they are compiled I think it should be this instead (sans the www) http://jd.bukkit.org/apidocs/ To make a command you need to put the command in your plugin.yml and then overide the onCommand method. Also, to be adding src files you shouold be clicking the green C button in the tool bar on eclipse, not going to the folder and making files
Should it be inside the com.gmail.zecheesy package? Should everything in the plugin be under that package?
@zecheesy In the main folder is fine, I don't think the location matters that much. Just make sure you include plugin.yml when you export the whole project to a JAR file.
no he should be using craftbukkit.jar or he wont have the craftbukkit api. if your just talking about naming the name of the .jar dosnet matter
it wont :L when i first started making plugins i used craftbukkit.jar cause i didnt know how to find bukkit.jar :L nothing worked for me
To be clear, referencing craftbukkit.jar gives you access to the core mechanics. Only do this if you intend to employ "CraftHacks" (Note: that's just a cute little term i've been coining around for the action of "Using bukkit plugins to further mod (hack) the server."). If you do choose to go down that path, remember that a "Real Block" (term I associate with minecraft) and a "CraftBlock" (term I associate with CraftBukkit) is NOT the same thing. Indeed, it can get messy under the hood. Thankfully, your friendly CraftBukkit dev team is here to abstract all that mess for you Go CraftBukkit! Lol.
also, some libraries that you might want to use for your plugin are already included by craftbukkit, but not with bukkit. The Gson library for example.
You dont have to rename it, the name of the jar wont change the jar. Thats like saying, "Im gonna call this hot dog mashed potatoes because I want it to be mashed potatoes." It doesnt work.
if you REALLY believe its gonna be mashed potatoes it will :> just use your immaaaaagiiinaaaatioooonnn :3 lol