18 lines
376 B
Java
18 lines
376 B
Java
package com.me.tft_02.soulbound.util;
|
|
|
|
import java.util.List;
|
|
|
|
public class StringUtils {
|
|
|
|
public static int getIndexOfSoulbound(List<String> itemLore) {
|
|
int index = -1;
|
|
|
|
for (String line : itemLore) {
|
|
if (line.contains(Misc.SOULBOUND_TAG)) {
|
|
return itemLore.indexOf(line);
|
|
}
|
|
}
|
|
return index;
|
|
}
|
|
}
|