Examples of sendNotification()


Examples of org.getspout.spoutapi.player.SpoutPlayer.sendNotification()

    for (Team t : this.getTeams()) {
      if (War.war.isSpoutServer()) {
        for (Player p : t.getPlayers()) {
          SpoutPlayer sp = SpoutManager.getPlayer(p);
          if (sp.isSpoutCraftEnabled()) {
                    sp.sendNotification(
                        SpoutDisplayer.cleanForNotification("Match won! " + ChatColor.WHITE + "Winners:"),
                        SpoutDisplayer.cleanForNotification(SpoutDisplayer.addMissingColor(winnersStr, this)),
                        Material.CAKE,
                        (short)0,
                        10000);
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.sendNotification()

    line2 = SpoutDisplayer.cleanForNotification(line2);
    for (Player player : this.players) {
      SpoutPlayer spoutPlayer = SpoutManager.getPlayer(player);
      if (!spoutPlayer.isSpoutCraftEnabled())
        continue;
      spoutPlayer.sendNotification(line1, line2, icon, ticks);
    }
  }
 
  public void setName(String name) {
    this.name = name;
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.sendNotification()

            for (Team t : playerWarzone.getTeams()) {
              if (War.war.isSpoutServer()) {
                for (Player p : t.getPlayers()) {
                  SpoutPlayer sp = SpoutManager.getPlayer(p);
                  if (sp.isSpoutCraftEnabled()) {
                            sp.sendNotification(
                                SpoutDisplayer.cleanForNotification(playerTeam.getKind().getColor() + player.getName() + ChatColor.YELLOW + " captured"),
                                SpoutDisplayer.cleanForNotification(victim.getKind().getColor() + victim.getName() + ChatColor.YELLOW + " flag!"),
                                victim.getKind().getMaterial(),
                                victim.getKind().getData(),
                                10000);
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.sendNotification()

            for (Team t : playerWarzone.getTeams()) {
              if (War.war.isSpoutServer()) {
                for (Player p : t.getPlayers()) {
                  SpoutPlayer sp = SpoutManager.getPlayer(p);
                  if (sp.isSpoutCraftEnabled()) {
                            sp.sendNotification(
                                SpoutDisplayer.cleanForNotification(playerTeam.getKind().getColor() + player.getName() + ChatColor.YELLOW + " blew up "),
                                SpoutDisplayer.cleanForNotification(victim.getKind().getColor() + victim.getName() + ChatColor.YELLOW + "'s spawn!"),
                                victim.getKind().getMaterial(),
                                victim.getKind().getData(),
                                10000);
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.sendNotification()

              for (Team t : playerWarzone.getTeams()) {
                if (War.war.isSpoutServer()) {
                  for (Player p : t.getPlayers()) {
                    SpoutPlayer sp = SpoutManager.getPlayer(p);
                    if (sp.isSpoutCraftEnabled()) {
                              sp.sendNotification(
                                  SpoutDisplayer.cleanForNotification(playerTeam.getKind().getColor() + player.getName() + ChatColor.YELLOW + " captured"),
                                  SpoutDisplayer.cleanForNotification(ChatColor.YELLOW + "cake " + ChatColor.GREEN + cake.getName() + ChatColor.YELLOW + "!"),
                                  playerTeam.getKind().getMaterial(),
                                  playerTeam.getKind().getData(),
                                  10000);
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.sendNotification()

        monument.capture(team);
        if (War.war.isSpoutServer()) {
          for (Player p : team.getPlayers()) {
            SpoutPlayer sp = SpoutManager.getPlayer(p);
            if (sp.isSpoutCraftEnabled()) {
                      sp.sendNotification(
                          SpoutDisplayer.cleanForNotification("Monument " + ChatColor.WHITE + monument.getName()),
                          SpoutDisplayer.cleanForNotification(ChatColor.YELLOW + "capped by " + team.getKind().getColor() + player.getName() + ChatColor.YELLOW + "!"),
                          team.getKind().getMaterial(),
                          team.getKind().getData(),
                          10000);
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.sendNotification()

        Team ownerTeam = monument.getOwnerTeam();
        if (War.war.isSpoutServer()) {
          for (Player p : team.getPlayers()) {
            SpoutPlayer sp = SpoutManager.getPlayer(p);
            if (sp.isSpoutCraftEnabled()) {
                      sp.sendNotification(
                          SpoutDisplayer.cleanForNotification("Monument " + ChatColor.WHITE + monument.getName()),
                          SpoutDisplayer.cleanForNotification(ChatColor.YELLOW + "freed by " + team.getKind().getColor() + player.getName() + ChatColor.YELLOW + "!"),
                          ownerTeam.getKind().getMaterial(),
                          ownerTeam.getKind().getData(),
                          10000);
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.sendNotification()

              if (t.getName().equals(lostFlagTeam.getName())) {
                if (War.war.isSpoutServer()) {
                  for (Player p : t.getPlayers()) {
                    SpoutPlayer sp = SpoutManager.getPlayer(p);
                    if (sp.isSpoutCraftEnabled()) {
                              sp.sendNotification(
                                  SpoutDisplayer.cleanForNotification(team.getKind().getColor() + player.getName() + ChatColor.YELLOW + " stole"),
                                  SpoutDisplayer.cleanForNotification(ChatColor.YELLOW + "your flag!"),
                                  lostFlagTeam.getKind().getMaterial(),
                                  lostFlagTeam.getKind().getData(),
                                  5000);
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.sendNotification()

            t.teamcast("zone.steal.bomb.broadcast", team.getKind().getColor() + player.getName() + ChatColor.WHITE, ChatColor.GREEN + bomb.getName() + ChatColor.WHITE);
            if (War.war.isSpoutServer()) {
              for (Player p : t.getPlayers()) {
                SpoutPlayer sp = SpoutManager.getPlayer(p);
                if (sp.isSpoutCraftEnabled()) {
                          sp.sendNotification(
                              SpoutDisplayer.cleanForNotification(team.getKind().getColor() + player.getName() + ChatColor.YELLOW + " has "),
                              SpoutDisplayer.cleanForNotification(ChatColor.YELLOW + "bomb " + ChatColor.GREEN + bomb.getName() + ChatColor.YELLOW + "!"),
                              Material.TNT,
                              (short)0,
                              5000);
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.sendNotification()

            t.teamcast("zone.steal.cake.broadcast", team.getKind().getColor() + player.getName() + ChatColor.WHITE, ChatColor.GREEN + cake.getName() + ChatColor.WHITE);
            if (War.war.isSpoutServer()) {
              for (Player p : t.getPlayers()) {
                SpoutPlayer sp = SpoutManager.getPlayer(p);
                if (sp.isSpoutCraftEnabled()) {
                          sp.sendNotification(
                              SpoutDisplayer.cleanForNotification(team.getKind().getColor() + player.getName() + ChatColor.YELLOW + " has "),
                              SpoutDisplayer.cleanForNotification(ChatColor.YELLOW + "cake " + ChatColor.GREEN + cake.getName() + ChatColor.YELLOW + "!"),
                              Material.CAKE,
                              (short)0,
                              5000);
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.