World.getInstance().registerEvent() method. Here an example:
This would execute an event after 60000 MS (60 seconds), delete an ground item and then stop the event (So it only executes once).Code:World.getInstance().registerEvent(new Event(60000) { public void execute() { p.getActionSender().deleteStaticObject(0, fireX, fireY); p.getUpdateFlags().setAppearanceUpdateRequired(true); World.getInstance().getItemManager().createGroundItem(Location.location(coords[0], coords[1], 0), new Item(592,1)); this.stop(); } });








