Add ability to skip disguise saving, add tiny logging for disguise saving
This commit is contained in:
		| @@ -106,6 +106,11 @@ public class DisguiseUtilities { | |||||||
|         if (!LibsPremium.isPremium()) |         if (!LibsPremium.isPremium()) | ||||||
|             return; |             return; | ||||||
|  |  | ||||||
|  |         if (!DisguiseConfig.isSaveEntityDisguises() && !DisguiseConfig.isSavePlayerDisguises()) | ||||||
|  |             return; | ||||||
|  |  | ||||||
|  |         System.out.println("[LibsDisguises] Now saving disguises.."); | ||||||
|  |  | ||||||
|         for (HashSet<TargetedDisguise> list : disguisesInUse.values()) { |         for (HashSet<TargetedDisguise> list : disguisesInUse.values()) { | ||||||
|             for (TargetedDisguise disg : list) { |             for (TargetedDisguise disg : list) { | ||||||
|                 if (disg.getEntity() == null) |                 if (disg.getEntity() == null) | ||||||
| @@ -119,6 +124,8 @@ public class DisguiseUtilities { | |||||||
|                 break; |                 break; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         System.out.println("[LibsDisguises] Saved disguises."); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public static boolean hasGameProfile(String playername) { |     public static boolean hasGameProfile(String playername) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user