Fix a bug

This commit is contained in:
libraryaddict 2020-08-23 13:34:43 +12:00
parent c9a3c125a5
commit 4d0fe01bb7

View File

@ -2729,7 +2729,11 @@ public class DisguiseUtilities {
internalOldNames = new String[]{StringUtils.join(internalOldNames, "\\n")}; internalOldNames = new String[]{StringUtils.join(internalOldNames, "\\n")};
if (!disguise.isPlayerDisguise() || ((PlayerDisguise) disguise).isNameVisible()) { if (!disguise.isPlayerDisguise() || ((PlayerDisguise) disguise).isNameVisible()) {
newNames = new String[]{StringUtils.join(newNames, "\\n")}; if (disguise.getMultiName().length > 1) {
getLogger().info("Multiline names is a premium feature, sorry!");
}
newNames = new String[]{StringUtils.join(disguise.getMultiName(), "\\n")};
} }
} else { } else {
newNames = (disguise instanceof PlayerDisguise && !((PlayerDisguise) disguise).isNameVisible()) ? newNames = (disguise instanceof PlayerDisguise && !((PlayerDisguise) disguise).isNameVisible()) ?