public void handleServer(ServerSession session, WindowClickMessage message) {
Player player = session.getPlayer();
Window window = player.get(WindowHolder.class).getActiveWindow();
boolean result = false;
int slot = message.getSlot();
ClickArguments args = window.getClickArguments(slot, ClickArguments.ClickAction.getAction(message.getMode(), message.getButton()));
if (args != null) {
result = window.onClick(args);
}
session.send(new WindowTransactionMessage(window, message.getTransaction(), result));
}