Exemple #1
0
  public void processJoin(Player player) {
    // Last chance to check
    if (!player.isOnline()) {
      return;
    }
    String name = player.getName();
    j2.irc.processJoin(name);
    j2.ip.processJoin(name);
    j2.warps.processJoin(name);
    j2.damage.processJoin(name);
    j2.jail.processJoin(player);
    this.playerReset(name);
    if (player.getInventory().getHelmet().getTypeId() == Material.FIRE.getId()) {
      player.getInventory().setHelmet(new ItemStack(Material.GRASS));
      player.sendMessage(ChatColor.RED + "You fizzle out");
    }
    if (j2.maintenance) {
      player.sendMessage(ChatColor.YELLOW + "We are in maintenance mode");
    }
    try {
      j2.mcbans.processJoin(player);
    } catch (Exception e) {

    }
    for (String line : j2.motd) {
      player.sendMessage(line);
    }
    if (j2.reallyHasFlag(name, Flag.ADMIN)) {
      int count = this.j2.reports.numReports();
      player.sendMessage(ChatColor.LIGHT_PURPLE + "There are " + count + " reports. ");
    }
    j2.minitrue.processJoin(player);
    if (j2.hasFlag(player, Flag.CONTRIBUTOR)) {
      player.sendMessage(
          ChatColor.LIGHT_PURPLE + "We think you're an " + ChatColor.GOLD + "AMAZING CONTRIBUTOR");
      player.sendMessage(
          ChatColor.LIGHT_PURPLE
              + "to the minecraft community as a whole! "
              + ChatColor.RED
              + "<3");
    }
  }