Examples of TeamActionEvent


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

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

   * @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

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

    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

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

   * @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

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

    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
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.