mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-11 01:38:07 +02: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())
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user