Setting up the workspace

Basically, add LilyBukkit-API as a dependency to your project, and write a Bukkit plugin as usual.
Bukkit Wiki