public RConThreadMain(IServer p_i1538_1_) { super(p_i1538_1_); this.field_72647_g = p_i1538_1_.func_71327_a("rcon.port", 0); this.field_72650_k = p_i1538_1_.func_71330_a("rcon.password", ""); this.field_72652_i = p_i1538_1_.func_71277_t(); this.field_72651_h = p_i1538_1_.func_71234_u(); if(0 == this.field_72647_g) { this.field_72647_g = this.field_72651_h + 10; this.func_72609_b("Setting default rcon port to " + this.field_72647_g); p_i1538_1_.func_71328_a("rcon.port", Integer.valueOf(this.field_72647_g)); if(0 == this.field_72650_k.length()) { p_i1538_1_.func_71328_a("rcon.password", ""); } p_i1538_1_.func_71326_a(); } if(0 == this.field_72652_i.length()) { this.field_72652_i = "0.0.0.0"; } this.func_72646_f(); this.field_72649_j = null; }
RConThreadClient(IServer p_i1537_1_, Socket p_i1537_2_) { super(p_i1537_1_); this.field_72659_h = p_i1537_2_; try { this.field_72659_h.setSoTimeout(0); } catch (Exception var4) { this.field_72619_a = false; } this.field_72658_j = p_i1537_1_.func_71330_a("rcon.password", ""); this.func_72609_b("Rcon connection from: " + p_i1537_2_.getInetAddress()); }
RConThreadBase(IServer p_i1534_1_) { this.field_72617_b = p_i1534_1_; if(this.field_72617_b.func_71239_B()) { this.func_72606_c("Debugging is enabled, performance maybe reduced!"); } }
public RConThreadQuery(IServer p_i1536_1_) { super(p_i1536_1_); this.field_72636_h = p_i1536_1_.func_71327_a("query.port", 0); this.field_72642_r = p_i1536_1_.func_71277_t(); this.field_72637_i = p_i1536_1_.func_71234_u(); this.field_72635_k = p_i1536_1_.func_71274_v(); this.field_72634_j = p_i1536_1_.func_71275_y(); this.field_72632_l = p_i1536_1_.func_71270_I(); this.field_72638_v = 0L; this.field_72643_q = "0.0.0.0"; if(0 != this.field_72642_r.length() && !this.field_72643_q.equals(this.field_72642_r)) { this.field_72643_q = this.field_72642_r; } else { this.field_72642_r = "0.0.0.0"; try { InetAddress var2 = InetAddress.getLocalHost(); this.field_72643_q = var2.getHostAddress(); } catch (UnknownHostException var3) { this.func_72606_c("Unable to determine local host IP, please set server-ip in \'" + p_i1536_1_.func_71329_c() + "\' : " + var3.getMessage()); } } if(0 == this.field_72636_h) { this.field_72636_h = this.field_72637_i; this.func_72609_b("Setting default query port to " + this.field_72636_h); p_i1536_1_.func_71328_a("query.port", Integer.valueOf(this.field_72636_h)); p_i1536_1_.func_71328_a("debug", Boolean.valueOf(false)); p_i1536_1_.func_71326_a(); } this.field_72644_p = new HashMap(); this.field_72639_u = new RConOutputStream(1460); this.field_72641_s = new HashMap(); this.field_72640_t = (new Date()).getTime(); }