|
|
Главная » 2012 » Октябрь » 15
|
import com.creature.Human; import com.packet.HappyBirthday; import org.joda.time.DateTime;
public class BirthdayNotify{
protected void notifyByName(String name){
Human human = Human.getByName(name);
if (null == human){ return; }
if (human.getBirthday().equals(new DateTime().getDay()){ human.sendPacket(new HappyBirthday( "Поздравляю с днюхой задрота Саню ;)" )); } }
public static void main(String[] args){
(new BirthdayNotify()).notifyByName("DarkAndras);
}
}
Просмотров:
1137
|
Добавил:
FreeMind
|
Дата:
15.10.2012
|
| |
|
 |