The Legman Posted October 22, 2017 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
Team Cape Posted October 22, 2017 Posted October 22, 2017 Use a filter: i -> i != null && i.getName().contains("Ring of dueling")
The Legman Posted October 22, 2017 Author 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
aftabdear Posted October 22, 2017 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)