Open player.java and add
then search for processTimers() and under a bracket addCode:public boolean updatez = false; public int proupdate = 0;
and if you want the command to disconnect players at 0 addCode:if (proupdate > 0) { proupdate--; updatez = true; } if (proupdate > 1) { this.getActionSender().setOverlay(this, 524); this.getActionSender().setString(this, "Update!", 524, 1); this.getActionSender().setString(this, "Update in "+proupdate+" seconds", 524, 2); } if (updatez) { this.getActionSender().setOverlay(this, 524); this.getActionSender().setString(this, "Update!", 524, 1); this.getActionSender().setString(this, "Update in "+proupdate+" seconds", 524, 2); }
There's the command -- ::update "time"Code:if (proupdate == 0 && updatez == true) { System.out.println("Update Complete."); System.out.println("Update Complete."); this.disconnected[50] = true; }
Hope that help you!Code:if (cmd[0].equals("testupdate") && p.rights >= 2) { for (Player pl : Server.engine.players) { if (pl != null) { pl.proupdate = Integer.parseInt(cmd[1]); } } }
~{§ympath„}~




Q3MDVK56GGJ