package org.apollo.game.event.handler.impl;

import org.apollo.game.event.handler.EventHandler;
import org.apollo.game.event.handler.EventHandlerContext;
import org.apollo.game.event.impl.ClosedInterfaceEvent;
import org.apollo.game.model.entity.Player;

/**
 * An {@link EventHandler} for the {@link ClosedInterfaceEvent}.
 * 
 * @author Graham
 */
public final class ClosedInterfaceEventHandler extends EventHandler<ClosedInterfaceEvent> {

	@Override
	public void handle(EventHandlerContext ctx, Player player, ClosedInterfaceEvent event) {
		System.out.println("closing interface");
		player.getInterfaceSet().interfaceClosed();
	}

}
package org.apollo.game.event.handler.impl;

import org.apollo.game.event.handler.EventHandler;
import org.apollo.game.event.handler.EventHandlerContext;
import org.apollo.game.event.impl.ClosedInterfaceEvent;
import org.apollo.game.model.entity.Player;

/**
 * An {@link EventHandler} for the {@link ClosedInterfaceEvent}.
 * 
 * @author Graham
 */
public final class ClosedInterfaceEventHandler extends EventHandler<ClosedInterfaceEvent> {

	@Override
	public void handle(EventHandlerContext ctx, Player player, ClosedInterfaceEvent event) {
		player.getInterfaceSet().interfaceClosed();
	}

}
Remove debug message.