Package games.pickupbot.errors

Examples of games.pickupbot.errors.GameError


            this.playerList.add(autoRemovablePlayer);

            this.checkPickupFormed();
        } else {
            throw new GameError(String.format("You have been already added to play %s game type",
                    IrcMessageTextModifier.makeBold(this.getGameType())));
        }
    }
View Full Code Here


        if (this.isPlayerAdded(playerToSubstitute)) {
            if (!this.isPlayerAdded(newPlayer)) {
                this.removePlayer(playerToSubstitute);
                this.addPlayer(newPlayer);
            } else {
                throw new GameError(String.format("Player %s is already added in %s",
                        IrcMessageTextModifier.makeBold(newPlayer.getNick()),
                        IrcMessageTextModifier.makeBold(this.getGameType())));
            }
        }
    }
View Full Code Here

        if (this.isPlayerAdded(new Player(oldNick, null))) {
            if (!this.isPlayerAdded(new Player(newNick, null))) {
                Player player = this.getPlayerByNick(oldNick);
                player.setNick(newNick);
            } else {
                throw new GameError(String.format("Player %s is already added in %s",
                        IrcMessageTextModifier.makeBold(newNick),
                        IrcMessageTextModifier.makeBold(this.getGameType())));
            }
        }
    }
View Full Code Here

        if (!ExtensionObject.DatabaseManager.isPlayerRegisteredInTournament(this.getGameType(),
                player.getGameProfile())) {

            ExtensionObject.DatabaseManager.addPlayerInTournament(this.getGameType(), player.getGameProfile());
        } else {
            throw new GameError(String.format("You have been already added to play %s tournament",
                    IrcMessageTextModifier.makeBold(this.getGameType())));
        }
    }
View Full Code Here

TOP

Related Classes of games.pickupbot.errors.GameError

Copyright © 2018 www.massapicom. 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.