The Legman Posted October 22, 2017 Share Posted October 22, 2017 if(!api.getInventory().contains("Fire Tiara") && api.getEquipment().isWearingItem(EquipmentSlot.RING, "Ring of dueling(8)")) { // Teleport to bank and withdraw + equipt This is my code. I was wondering how I could make it so if the player is wearing ANY charge of ring (1) or (5) for example this statement will still return true? Thanks Quote Link to comment Share on other sites More sharing options...
Team Cape Posted October 22, 2017 Share Posted October 22, 2017 Use a filter: i -> i != null && i.getName().contains("Ring of dueling") Quote Link to comment Share on other sites More sharing options...
The Legman Posted October 22, 2017 Author Share Posted October 22, 2017 1 minute ago, Team Cape said: Use a filter: i -> i != null && i.getName().contains("Ring of dueling") like so? https://gyazo.com/f4a6e617729b96e691587624edfd86ba 1 Quote Link to comment Share on other sites More sharing options...
aftabdear Posted October 22, 2017 Share Posted October 22, 2017 if(!api.getInventory().contains("Fire Tiara") && api.getEquipment().isWearingItem(EquipmentSlot.RING, "Ring of dueling(")) { // simples, the charged stuff have a bracket e.g. (1) Quote Link to comment Share on other sites More sharing options...