banlistplugin: Char is faster than string

This commit is contained in:
sdburns1998
2019-07-07 02:11:18 +02:00
parent f635532b0c
commit 6375a8c2df

View File

@@ -382,8 +382,8 @@ public class BanListPlugin extends Plugin
{
if (x.contains("title"))
{
x = x.substring(x.indexOf("title"), x.indexOf(">"));
x = x.substring(x.indexOf("=") + 2, x.length() - 1);
x = x.substring(x.indexOf("title"), x.indexOf('>'));
x = x.substring(x.indexOf('=') + 2, x.length() - 1);
runeWatchArrayList.add(Text.standardize(x));
}
}