Package com.tommytony.war

Examples of com.tommytony.war.Warzone.broadcast()


    if (zone == null) {
      return false;
    }

    zone.clearThieves();
    zone.broadcast("zone.battle.next", zone.getName());
   
    PartialZoneResetJob.setSenderToNotify(zone, this.getSender());
   
    zone.reinitialize();
   
View Full Code Here


                          team.getKind().getData(),
                          10000);
            }
          }
        }
        zone.broadcast("zone.monument.capture", monument.getName(), team.getName());
        event.setCancelled(false);
        return; // important otherwise cancelled down a few line by isImportantblock
      } else {
        War.war.badMsg(player, "zone.monument.badblock");
        cancelAndKeepItem(event);
View Full Code Here

                          ownerTeam.getKind().getData(),
                          10000);
            }
          }
        }
        warzone.broadcast("zone.monument.lose", ownerTeam.getName(), monument.getName());
        monument.uncapture();
      }
      event.setCancelled(false);
      return;
    }
View Full Code Here

      if (!zone.getWarzoneConfig().getBoolean(WarzoneConfig.REALDEATHS)) {
        // catch the odd death that gets away from us when usually intercepting and preventing deaths
        zone.handleDeath(player);
        Team team = Team.getTeamByPlayerName(player.getName());
        if (zone.getWarzoneConfig().getBoolean(WarzoneConfig.DEATHMESSAGES)) {
          zone.broadcast("pvp.death.other", team.getKind().getColor() + player.getName());
        }
        War.war.getLogger().log(Level.WARNING, "We missed the death of player {0} - something went wrong.", player.getName());
      } else {
        event.setDeathMessage("");
      }
View Full Code Here

        Warzone zone = Warzone.getZoneByPlayerName(player.getName());
        Team team = Team.getTeamByPlayerName(player.getName());
        if (zone != null) {
          if (War.war.getKillstreakReward().getAirstrikePlayers().remove(player.getName())) {
            event.getEntity().setMetadata("warAirstrike", new FixedMetadataValue(War.war, true));
            zone.broadcast("zone.airstrike", team.getKind().getColor() + player.getName() + ChatColor.WHITE);
          }
        }
      }
    }
  }
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.