Favorlock/LegionCore — comment on commit 82f0615be8442afdef8923fa751a7b7b9036c0f9
File: src/com/favorlock/LegionCore/LegionCore.java line 45
By Na7coldwater:

Try replacing these variables with

Player[] list = sender.getServer().getOnlinePlayers();
boolean playerFound = false;
String matchedNames = "";
Player checkNames = null;
int amt = 0;

And remove the declarations for these variables from the top of the function. This will make them local to this function, which looks nicer, and will save you from some headaches later on.