If you don't understand why this is the main problem right here, then just give up programming right now.
I know it's a simple one, but have you made sure you aren't in the spawn protected area?
To me (and I could be wrong) this a solution that tackles many problems at once that the Bukkit team struggle with on a constant basis....
Offline mode working here on our private home LAN server.
Separate names with a comma.