From cf0f16a175a0a47b0dad9e168923eee53eb96f28 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 7 Aug 2017 04:06:40 +1200 Subject: [PATCH] Fixed trying to cast command to player --- .../libraryaddict/disguise/commands/DisguisePlayerCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/commands/DisguisePlayerCommand.java b/src/me/libraryaddict/disguise/commands/DisguisePlayerCommand.java index e7a2db95..40569199 100644 --- a/src/me/libraryaddict/disguise/commands/DisguisePlayerCommand.java +++ b/src/me/libraryaddict/disguise/commands/DisguisePlayerCommand.java @@ -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);