Examples of colorMessage()


Examples of org.mctourney.autoreferee.AutoRefMatch.colorMessage()

      // if we are logging in to the wrong world, teleport to the correct world
      if (player.getWorld() != match.getWorld()) match.joinMatch(player);
      else match.checkTeamsReady();

      if (!match.getCurrentState().inProgress() || match.isPlayer(player))
        match.broadcast(match.colorMessage(event.getJoinMessage()));
      event.setJoinMessage(null);

      match.sendMatchInfo(player);
      match.setupSpectators(player);
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefMatch.colorMessage()

  {
    AutoRefMatch match = plugin.getMatch(event.getPlayer().getWorld());
    if (match != null)
    {
      if (!match.getCurrentState().inProgress() || match.isPlayer(event.getPlayer()))
        match.broadcast(match.colorMessage(event.getQuitMessage()));
      event.setQuitMessage(null);

      // set the player back to the main scoreboard
      event.getPlayer().setScoreboard(Bukkit.getScoreboardManager().getMainScoreboard());
    }
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.