From 789d1b15c75b49aed9ca29331a72eb6435c57bd2 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 29 Nov 2020 07:06:33 +1300 Subject: [PATCH] Log how many disguises were saved --- .../libraryaddict/disguise/utilities/DisguiseUtilities.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index a8f1c78a..995b7534 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -486,6 +486,7 @@ public class DisguiseUtilities { } getLogger().info("Now saving disguises.."); + int disguisesSaved = 0; for (Set list : getDisguises().values()) { for (TargetedDisguise disg : list) { @@ -495,15 +496,16 @@ public class DisguiseUtilities { if (disg.getEntity() instanceof Player ? !DisguiseConfig.isSavePlayerDisguises() : !DisguiseConfig.isSaveEntityDisguises()) { - continue; + break; } + disguisesSaved++; saveDisguises(disg.getEntity().getUniqueId(), list.toArray(new Disguise[0])); break; } } - getLogger().info("Saved disguises."); + getLogger().info("Saved " + disguisesSaved + " disguises."); } public static boolean hasGameProfile(String playername) {