From 684e57827cf33983e8834db039261086002d8726 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 10 May 2020 20:17:46 +1200 Subject: [PATCH] If using multi-name, split the string and use the first line as the skin --- .../disguise/disguisetypes/PlayerDisguise.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java index f29b8209..6bdffb5c 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java @@ -400,6 +400,14 @@ public class PlayerDisguise extends TargetedDisguise { } } + if (newSkin != null) { + String[] split = DisguiseUtilities.splitNewLine(newSkin); + + if (split.length > 0) { + newSkin = split[0]; + } + } + if (newSkin != null && newSkin.length() > 16) { newSkin = null; }