mirror of
https://github.com/SimplexDevelopment/SimplexCore.git
synced 2024-12-22 16:47: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<>();
|
AtomicReference<Ban> temp = new AtomicReference<>();
|
||||||
banMap.forEach((ban, type) -> {
|
|
||||||
if (ban.getOffender().equals(player.getUniqueId())) {
|
banMap.keySet()
|
||||||
temp.set(ban);
|
.stream()
|
||||||
}
|
.filter(ban -> ban.getOffender().equals(player.getUniqueId()))
|
||||||
});
|
.forEach(temp::set);
|
||||||
|
|
||||||
return temp.get();
|
return temp.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user