Package mage.players

Examples of mage.players.Player.quit()


    @Override
    public void quit(UUID playerId) {
        if (state != null) {
            Player player = state.getPlayer(playerId);
            if (player != null && player.isInGame()) {
                player.quit(this);
            }
        }
    }

    @Override
View Full Code Here


                callExecutor.execute(
                    new Runnable() {
                        @Override
                        public void run() {
                            try {
                                player.quit(game);
                            } catch (Exception ex) {
                                if (ex != null) {
                                    // It seems this can happen if two threads try to end the game at the exact same time (one wins and one ends here)
                                    logger.fatal("Game session game quit exception " + (ex.getMessage() == null ? "null":ex.getMessage()));
                                    logger.debug("- gameId:" + game.getId() +"  playerId: " + playerId);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.