case ID:
//startanimation etc...
EventManager.getSingleton().addEvent(
new Event() {
public void execute(EventContainer c) {
sendMessage("You hit the dummy.");
// you could add animations here, addSkillXP, whatever you want
c.stop(); // stops the event from running
}
}, 2000); // executes after 2,000 ms = 2 seconds
};
break;