Actually implement disable friendly invisibles from the config..

This commit is contained in:
libraryaddict 2022-06-27 00:53:30 +12:00
parent 127f1acb7f
commit 5dc44fc1bd

View File

@ -184,6 +184,10 @@ public class DisguiseUtilities {
team.setOption(Option.COLLISION_RULE, OptionStatus.NEVER);
}
if (DisguiseConfig.isDisableFriendlyInvisibles()) {
team.setCanSeeFriendlyInvisibles(false);
}
if (disguise.getWatcher().getGlowColor() != null && disguise.getWatcher().getGlowColor() != team.getColor()) {
team.setColor(disguise.getWatcher().getGlowColor());
}