mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Add ability to skip disguise saving, add tiny logging for disguise saving
This commit is contained in:
parent
940e3aab86
commit
05134d231d
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue