From 5fe25f90a03e734aaec54f1ad70e0b3bdb272752 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 24 Apr 2020 16:19:24 +1200 Subject: [PATCH] Fix clone() not cloning dynamicname --- .../libraryaddict/disguise/disguisetypes/PlayerDisguise.java | 1 + .../libraryaddict/disguise/utilities/translations/LibsMsg.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java index b04792bf..6163f0cd 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java @@ -173,6 +173,7 @@ public class PlayerDisguise extends TargetedDisguise { } disguise.setNameVisible(isNameVisible()); + disguise.setDynamicName(isDynamicName()); clone(disguise); diff --git a/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java b/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java index 32761bbd..98456d91 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java @@ -143,7 +143,8 @@ public enum LibsMsg { NO_MODS(ChatColor.RED + "%s is not using any mods!"), MODS_LIST(ChatColor.DARK_GREEN + "%s has the mods:" + ChatColor.AQUA + " %s"), 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_FAILED(ChatColor.RED + "LibsDisguises update failed! Check console for errors."), UPDATE_SUCCESS(ChatColor.DARK_GREEN + "LibsDisguises update success! Restart server to update!"),