Fixed trying to cast command to player
This commit is contained in:
		| @@ -86,7 +86,7 @@ public class DisguisePlayerCommand extends DisguiseBaseCommand implements TabCom | |||||||
|  |  | ||||||
|         if (DisguiseConfig.isNameOfPlayerShownAboveDisguise()) { |         if (DisguiseConfig.isNameOfPlayerShownAboveDisguise()) { | ||||||
|             if (disguise.getWatcher() instanceof LivingWatcher) { |             if (disguise.getWatcher() instanceof LivingWatcher) { | ||||||
|                 disguise.getWatcher().setCustomName(getDisplayName(sender)); |                 disguise.getWatcher().setCustomName(getDisplayName(player)); | ||||||
|  |  | ||||||
|                 if (DisguiseConfig.isNameAboveHeadAlwaysVisible()) { |                 if (DisguiseConfig.isNameAboveHeadAlwaysVisible()) { | ||||||
|                     disguise.getWatcher().setCustomNameVisible(true); |                     disguise.getWatcher().setCustomNameVisible(true); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user