Esempio n. 1
0
  public void func_71515_b(ICommandSender p_71515_1_, String[] p_71515_2_) {
    if (p_71515_2_.length >= 1 && p_71515_2_[0].length() > 1) {
      Matcher var3 = field_147211_a.matcher(p_71515_2_[0]);
      IChatComponent var4 = null;
      if (p_71515_2_.length >= 2) {
        var4 = func_147178_a(p_71515_1_, p_71515_2_, 1);
      }

      if (var3.matches()) {
        this.func_147210_a(p_71515_1_, p_71515_2_[0], var4 == null ? null : var4.func_150260_c());
      } else {
        EntityPlayerMP var5 =
            MinecraftServer.func_71276_C().func_71203_ab().func_72361_f(p_71515_2_[0]);
        if (var5 == null) {
          throw new PlayerNotFoundException("commands.banip.invalid", new Object[0]);
        }

        this.func_147210_a(
            p_71515_1_, var5.func_71114_r(), var4 == null ? null : var4.func_150260_c());
      }

    } else {
      throw new WrongUsageException("commands.banip.usage", new Object[0]);
    }
  }
  public List getPlayerList(String par1Str) {
    ArrayList var2 = new ArrayList();
    Iterator var3 = this.playerEntityList.iterator();

    while (var3.hasNext()) {
      EntityPlayerMP var4 = (EntityPlayerMP) var3.next();

      if (var4.func_71114_r().equals(par1Str)) {
        var2.add(var4);
      }
    }

    return var2;
  }