Add ability to skip disguise saving, add tiny logging for disguise saving

This commit is contained in:
libraryaddict 2017-07-24 06:31:09 +12:00
parent 940e3aab86
commit 05134d231d

View File

@ -106,6 +106,11 @@ public class DisguiseUtilities {
if (!LibsPremium.isPremium())
return;
if (!DisguiseConfig.isSaveEntityDisguises() && !DisguiseConfig.isSavePlayerDisguises())
return;
System.out.println("[LibsDisguises] Now saving disguises..");
for (HashSet<TargetedDisguise> list : disguisesInUse.values()) {
for (TargetedDisguise disg : list) {
if (disg.getEntity() == null)
@ -119,6 +124,8 @@ public class DisguiseUtilities {
break;
}
}
System.out.println("[LibsDisguises] Saved disguises.");
}
public static boolean hasGameProfile(String playername) {