Package frontend.alphaspawn.tools.arena

Examples of frontend.alphaspawn.tools.arena.ASArena


    // TODO Put the code to analyze the string
    // Do some checkup on the string to be sure it is the answer
    // from the server and not some player message.
    int playerID = chatMsg.getPlayerID();
    String message = chatMsg.getMessage();
    ASArena arena = ASArena.getInstance();
    Player sender = arena.getPlayer( playerID );
   
    if ( sender != null ) {
      // A player sended the message
      // We are waiting for a message from the server...not a player
      return;
View Full Code Here


    boolean hasArgs = (args != null && args.trim().length() > 0);
    // Checks if the player has specified a player name next to the command
    if ( !hasArgs ) { return; }

    // The player has specified a player name
    ASArena arena = ASArena.getInstance();
    Player player = arena.getFuzzyPlayer( args );

    if ( player == null ) {
      // The player was not found
      // Display a message to the player requesting a lag check
      this.objConnection.sendPrivateMessage( playerName, "Unable to reconize a player that sounds like '" + args + "'." );
View Full Code Here

TOP

Related Classes of frontend.alphaspawn.tools.arena.ASArena

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.