BukkitWiki

Welcome to the BukkitWiki!

This Wiki is home to Bukkit's documentation and regulations surrounding the Bukkit Project and it's services. Want to help out? We would love to have you! Signup to get started!

READ MORE

BukkitWiki
Advertisement

I was reading thru this for my own sake(I'm new to coding plugins) and I got stuck after I created the plugin file. It never said how/when to create the class files. Could someone add this to help people in the future? I figured it out myself, but I'm not that good at editing wiki's and I don't want to mess it up on accident. --Conmiro 22:11, 12 May 2011 (EST)

Commands

When the tutorial explains commands, it is helpful, but it doesn't ever specify where a developer should place the coding. Also, the tutorial does not, at least with much clarity, touch on why different bits of code go into different classes in the Bukkit setup. Cholo71796 17:41, 9 July 2011 (EST)

On that note I noticed it does not say anything about calling getCommand(s).setExecutor() in onEnable for a plugin --Sagacious Zed 07:19, 8 September 2011 (EST)

Cleanup

Could someone please clean this page up? It looks messy. Put some titles and shit in here RightLegRed 18:04, 1 June 2011 (EST)

I will go around and fix the HTML (its reaaallly ugly atm) and put in some titles soon, but if anyone gets around to it before me I won't be complaining ;-) -- Chris Ward - Volunteer Admin (Report Spam) 01:50, 2 June 2011 (EST)
It was copied directly from the forum thread, yay! I'll pick at it a bit too. resba - BukkitWiki Admin 08:46, 2 June 2011 (EST)
It looks like some of the English could be improved on too. If I find time later, I'll go through and re-word some of it and sort it into paragraphs. RightLegRed 07:53, 4 June 2011 (EST)

Video

Hey, I found this video that follows most of the patterns in this tutorial for setting up a basic plugin, it was really useful for my first plugin! I don't know if you can add it to the wiki, I don't want to touch it and ruin things :p

http://www.youtube.com/watch?v=DzyHpwRVtVw

--Conmiro 16:48, 13 May 2011 (EST)

Storing/loading objects.

Hey, I tried to implement your SLAPI in a plugin which I'm currently writing. The rest of the plugin works fine, I'm experimenting with saving objects directly instead of casting them to strings and storing them in properties.

Simply: when I try to write a Player or Hashmap, my server console freaks about about notSerializableException. If I try to write a simple int, there is no issue.

Am I missing something, or are things like Players (which you said would be ok) not able to be written with your SLAPI approach? If so, what's the most popular way of saving, say, a Hashmap with Player as a key and Location as value? Thanks.

Mcatoy 21:11, 25 May 2011 (EST)

OnEnable/OnDisable and registering listeners

Should there not at least be the suggestion in one of these two sections that a plugin developer should keep track whether their plugin has already registered event listeners already? You can disable/enable plugins and some would/will happily register an event a second time.

A more ideal situation would perhaps be that Bukkit let a plugin only register for one event just once (allowing for multiple priorities of course).

And also that they keep track when their plugin is disabled and that they wouldn't let their event handlers continue when that is the case. As it is now you cannot unregister your listeners. And same as above goes. Maybe Bukkit should just not send events to disabled plugins.

But those are feature requests that don't go here, I know. At least the tutorial could promote such behavior. ArmEagle 07:06, 1 June 2011 (EST)

YML Tutorial?

YML is awesome for writing config files so could instructions on that be posted here? -- Chris Ward - Volunteer Admin (Report Spam) 11:00, 29 July 2011 (EST)

Duplicated Page

What is the difference between this and the HUGE Plugin Tutorial -- Chris Ward - Volunteer Admin (Report Spam) 23:31, 6 September 2011 (EST)

Oh sorry, I didn't realize that it was moved :/ -- Chris Ward - Volunteer Admin (Report Spam) 23:31, 6 September 2011 (EST)

Advertising plugins and library?

Although I believe that Adamki11s should be given credit for starting this tutorial, the Adverts for Extra's etc. should be in my opinion removed. Also, some words should be changed, like "my", etc. It is an official plugin tutorial now, so we shouldn't advertise any plugins or libraries - that is unfair to other developers, who often made their own libraries. The wiki page isn't a place to advertise work, so - am I just nagging, or should we clean it up? -- Acrobot 16:41, 17 October 2011 (EST)

I agree, it does need cleaning up. I think it should be attributed but shouldn't have the plugins -- Chris Ward - Volunteer Admin (Report Spam) 11:13, 18 October 2011 (EST)

Requests Section

Should this be moved to this talk page? Thats the kind of thing that you don't put on the main page, but on the talk page -- Chris Ward - Volunteer Admin (Report Spam) 04:12, 18 September 2011 (EST)

Advertisement