If using multi-name, split the string and use the first line as the skin
This commit is contained in:
parent
a0398c4d02
commit
684e57827c
@ -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) {
|
if (newSkin != null && newSkin.length() > 16) {
|
||||||
newSkin = null;
|
newSkin = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user