mirror of
https://github.com/SimplexDevelopment/SimplexCore.git
synced 2024-12-22 08:37:37 +00:00
Update BanManager.java
This commit is contained in:
parent
96b25fe139
commit
5abf62aa68
@ -36,11 +36,12 @@ public class BanManager extends SimplexListener {
|
||||
}
|
||||
|
||||
AtomicReference<Ban> temp = new AtomicReference<>();
|
||||
banMap.forEach((ban, type) -> {
|
||||
if (ban.getOffender().equals(player.getUniqueId())) {
|
||||
temp.set(ban);
|
||||
}
|
||||
});
|
||||
|
||||
banMap.keySet()
|
||||
.stream()
|
||||
.filter(ban -> ban.getOffender().equals(player.getUniqueId()))
|
||||
.forEach(temp::set);
|
||||
|
||||
return temp.get();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user