mirror of
https://github.com/Shimeo98/DiscordWhitelisterSpigot.git
synced 2025-01-21 15:41:26 +01:00
clean-up & bug fixes
This commit is contained in:
parent
117d87add5
commit
c4b8f989ef
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user