Set custom name dynamically on start
This commit is contained in:
		| @@ -413,7 +413,17 @@ public class PlayerDisguise extends TargetedDisguise { | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             if (getName().equals("<Inherit>") && getEntity() != null) { | ||||
|             if (isDynamicName()) { | ||||
|                 String name = getEntity().getCustomName(); | ||||
|  | ||||
|                 if (name == null) { | ||||
|                     name = ""; | ||||
|                 } | ||||
|  | ||||
|                 if (!getName().equals(name)) { | ||||
|                     setName(name); | ||||
|                 } | ||||
|             } else if (getName().equals("<Inherit>") && getEntity() != null) { | ||||
|                 String name = getEntity().getCustomName(); | ||||
|  | ||||
|                 if (name == null || name.isEmpty()) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user