|
Главная » 2012 » Октябрь » 15 » DarkAndras - ДР!
|
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);
}
}
|
Просмотров: 1129 |
Добавил: FreeMind
| Рейтинг: 0.0/0 |
Всего комментариев: 4 | |
|
|
|
Добавлять комментарии могут только зарегистрированные пользователи. [ Регистрация | Вход ]
|
 |