handleScreenCloseCancelled(player, (ScreenCloseEvent) event, true);
} else if (ScreenType.getType(this.screen) == ScreenType.CUSTOM_SCREEN) {
handleScreenClose(player, (ScreenCloseEvent) event, true);
}
if (!event.isCancelled()) {
player.openScreen(ScreenType.GAME_SCREEN, false);
}
break;
case Open:
event = new ScreenOpenEvent(player, player.getMainScreen().getActivePopup(), ScreenType.getType(this.screen));
Bukkit.getServer().getPluginManager().callEvent(event);