This is the source to my bukkit plugin VIP Welcome found here: http://dev.bukkit.org/bukkit-plugins/vip-message/