Untitled
RezzCW main; public bolteq(RezzCW main) { super(); super.name = "bolt equipment"; this.main = main; } @Override public boolean activate() { return main.c.desired.contains(Players.local()); } @Override public void execute() { if (Game.tab(Game.Tab.INVENTORY)) { String boltid = "Emerald bolts (e)"; Item bolts = Inventory.stream().name(boltid).first(); bolts.interact("Wield"); Condition.sleep(Random.nextInt(100,30)*50); } }