mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-14 15:26:54 +01:00
Add ability to skip disguise saving, add tiny logging for disguise saving
This commit is contained in:
parent
940e3aab86
commit
05134d231d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user