Get cache not perverts
This commit is contained in:
parent
e81b42b0ff
commit
e25279f8cb
@ -217,7 +217,9 @@ public class PlayerSkinHandler implements Listener {
|
|||||||
|
|
||||||
PlayerDisguise disguise = (PlayerDisguise) event.getDisguise();
|
PlayerDisguise disguise = (PlayerDisguise) event.getDisguise();
|
||||||
|
|
||||||
for (Player player : DisguiseUtilities.getPerverts(disguise)) {
|
ArrayList<Player> players = new ArrayList<>(getCache().asMap().keySet());
|
||||||
|
|
||||||
|
for (Player player : players) {
|
||||||
List<PlayerSkin> skins = getCache().getIfPresent(player);
|
List<PlayerSkin> skins = getCache().getIfPresent(player);
|
||||||
|
|
||||||
if (skins == null) {
|
if (skins == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user