Package org.spout.vanilla.event.scoreboard

Examples of org.spout.vanilla.event.scoreboard.TeamActionEvent


   * @param name to add
   * @return this team
   */
  public Team addPlayerName(String name) {
    playerNames.add(name);
    scoreboard.callProtocolEvent(new TeamActionEvent(this, ScoreboardTeamMessage.ADD_PLAYERS, name));
    return this;
  }
View Full Code Here


   * @param name to add
   * @return this team
   */
  public Team removePlayerName(String name) {
    playerNames.remove(name);
    scoreboard.callProtocolEvent(new TeamActionEvent(this, ScoreboardTeamMessage.REMOVE_PLAYERS, name));
    return this;
  }
View Full Code Here

    scoreboard.callProtocolEvent(new TeamActionEvent(this, ScoreboardTeamMessage.REMOVE_PLAYERS, name));
    return this;
  }

  private void update() {
    scoreboard.callProtocolEvent(new TeamActionEvent(this, ScoreboardTeamMessage.ACTION_UPDATE));
  }
View Full Code Here

   * @return newly created team
   */
  public Team createTeam(String name) {
    Team team = new Team(this, name);
    teams.add(team);
    callProtocolEvent(new TeamActionEvent(team, ScoreboardTeamMessage.ACTION_CREATE));
    return team;
  }
View Full Code Here

    Team team = getTeam(name);
    if (team == null) {
      throw new IllegalArgumentException("Specified team does not exist on this scoreboard.");
    }
    teams.remove(team);
    callProtocolEvent(new TeamActionEvent(team, ScoreboardTeamMessage.ACTION_REMOVE));
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.event.scoreboard.TeamActionEvent

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.