public final class AnimateEntityMessageHandler extends MessageHandler<AnimateEntityMessage> {
@Override
public void handle(Session session, Player player, AnimateEntityMessage message) {
// TODO check the animation id is valid?
message = new AnimateEntityMessage(player.getId(), message.getAnimation());
for (Player p : player.getWorld().getPlayers()) {
if (p != player) {
p.getSession().send(message);
}
}