clean-up & bug fixes

This commit is contained in:
Joe Shimell 2020-11-27 20:56:06 +00:00
parent 117d87add5
commit c4b8f989ef
2 changed files with 350 additions and 737 deletions

File diff suppressed because it is too large Load Diff

View File

@ -103,9 +103,9 @@ public class OnBanEvent implements Listener
InputStream inputStream = new FileInputStream(UserList.getUserListFile());
Map<String, List<String>> testObject = userYaml.load(inputStream);
Map<String, List<String>> userListObject = userYaml.load(inputStream);
for(Map.Entry<String, List<String>> entry : testObject.entrySet())
for(Map.Entry<String, List<String>> entry : userListObject.entrySet())
{
for(int i = 0; i < entry.getValue().size(); i++)
{
@ -115,6 +115,7 @@ public class OnBanEvent implements Listener
targetDiscordId = entry.getKey();
targetWhitelistedPlayers = entry.getValue();
idFound = true;
break;
}
}
}