Fixed trying to cast command to player

This commit is contained in:
libraryaddict 2017-08-07 04:06:40 +12:00
parent b3deaa9b70
commit cf0f16a175

View File

@ -86,7 +86,7 @@ public class DisguisePlayerCommand extends DisguiseBaseCommand implements TabCom
if (DisguiseConfig.isNameOfPlayerShownAboveDisguise()) {
if (disguise.getWatcher() instanceof LivingWatcher) {
disguise.getWatcher().setCustomName(getDisplayName(sender));
disguise.getWatcher().setCustomName(getDisplayName(player));
if (DisguiseConfig.isNameAboveHeadAlwaysVisible()) {
disguise.getWatcher().setCustomNameVisible(true);