Fix clone() not cloning dynamicname

This commit is contained in:
libraryaddict 2020-04-24 16:19:24 +12:00
parent 7658d31ee5
commit 5fe25f90a0
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4
2 changed files with 3 additions and 1 deletions

View File

@ -173,6 +173,7 @@ public class PlayerDisguise extends TargetedDisguise {
} }
disguise.setNameVisible(isNameVisible()); disguise.setNameVisible(isNameVisible());
disguise.setDynamicName(isDynamicName());
clone(disguise); clone(disguise);

View File

@ -143,7 +143,8 @@ public enum LibsMsg {
NO_MODS(ChatColor.RED + "%s is not using any mods!"), NO_MODS(ChatColor.RED + "%s is not using any mods!"),
MODS_LIST(ChatColor.DARK_GREEN + "%s has the mods:" + ChatColor.AQUA + " %s"), MODS_LIST(ChatColor.DARK_GREEN + "%s has the mods:" + ChatColor.AQUA + " %s"),
NO_PERM(ChatColor.RED + "You are forbidden to use this command."), NO_PERM(ChatColor.RED + "You are forbidden to use this command."),
UPDATE_NOT_READY(ChatColor.RED + "Lib's Disguises doesn't know what's the latest update!"), UPDATE_NOT_READY(ChatColor.RED +
"Lib's Disguises doesn't know what's the latest update! Use 'update!' to force an update to latest!"),
UPDATE_ON_LATEST(ChatColor.RED + "You are already on the latest version of LibsDisguises!"), UPDATE_ON_LATEST(ChatColor.RED + "You are already on the latest version of LibsDisguises!"),
UPDATE_FAILED(ChatColor.RED + "LibsDisguises update failed! Check console for errors."), UPDATE_FAILED(ChatColor.RED + "LibsDisguises update failed! Check console for errors."),
UPDATE_SUCCESS(ChatColor.DARK_GREEN + "LibsDisguises update success! Restart server to update!"), UPDATE_SUCCESS(ChatColor.DARK_GREEN + "LibsDisguises update success! Restart server to update!"),