Ejemplo n.º 1
0
  @Override
  public void openEvent(EventParams mp) throws NeverWouldJoinException {
    aliveTeams.clear();
    competingTeams.clear();
    rounds.clear();
    round = -1;
    nrounds = -1;
    timeBetweenRounds = oParms.getTimeBetweenRounds();
    String color = Util.getColor(mp.getPrefix());
    mp.setPrefix(color + "[" + mp.getName() + " " + oParms.getName() + "]");
    mp.setCommand(oParms.getCommand());
    mp.setName(mp.getName() + " " + oParms.getName());
    mp.setTimeBetweenRounds(oParms.getTimeBetweenRounds());
    mp.setSecondsTillMatch(oParms.getSecondsTillMatch());
    mp.setSecondsToLoot(oParms.getSecondsToLoot());

    TimeUtil.testClock();
    super.openEvent(mp);
  }
Ejemplo n.º 2
0
 @Override
 public void openEvent(EventParams mp) throws NeverWouldJoinException {
   aliveTeams.clear();
   competingTeams.clear();
   rounds.clear();
   round = -1;
   nrounds = -1;
   timeBetweenRounds = oParms.getTimeBetweenRounds();
   ChatColor color = MessageUtil.getFirstColor(mp.getPrefix());
   mp.setTransitionOptions(mp.getTransitionOptions());
   mp.setPrefix(color + "[" + mp.getName() + " " + oParms.getName() + "]");
   mp.setCommand(oParms.getCommand());
   mp.setName(mp.getName() + " " + oParms.getName());
   mp.setTimeBetweenRounds(oParms.getTimeBetweenRounds());
   mp.setSecondsTillMatch(oParms.getSecondsTillMatch());
   mp.setSecondsToLoot(oParms.getSecondsToLoot());
   TimeUtil.testClock();
   super.openEvent(mp);
   EventParams copy = new EventParams(mp);
   copy.setMaxTeams(CompetitionSize.MAX);
   this.setTeamJoinHandler(TeamJoinFactory.createTeamJoinHandler(copy, this));
 }