I'm trying to make a plugin with chances. Let's say I have a item and its first lore saying Chance: 50 How do i get that certain line and the numer only?
$lores = $item->getLores(); $explode = explode(" ", $lores[0]); $chance = (int) $explode[1]; I think it's right
getLores() is not a function in pmmp. The correct function is getLore() this function returns an array.