You can't just copy and paste code for servers. Yes, some of it will be the same. Other parts of it will be different. For Bukkit, I suggest going here.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
together they are powerful beyond imagination."