From 073346eb7fb1abe523cc541891d6e065a799b23a Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 14 Mar 2019 16:42:32 +0100 Subject: [PATCH] /u c sender changed to player --- src/main/java/buttondevteam/chat/components/fun/CCommand.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/buttondevteam/chat/components/fun/CCommand.java b/src/main/java/buttondevteam/chat/components/fun/CCommand.java index 0b8c55f..3cd8e27 100644 --- a/src/main/java/buttondevteam/chat/components/fun/CCommand.java +++ b/src/main/java/buttondevteam/chat/components/fun/CCommand.java @@ -4,7 +4,6 @@ import buttondevteam.chat.ChatPlayer; import buttondevteam.chat.PluginMain; import buttondevteam.lib.chat.*; import buttondevteam.lib.player.TBMCPlayer; -import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; @CommandClass(path = "u c", helpText = { @@ -14,8 +13,7 @@ import org.bukkit.entity.Player; @OptionallyPlayerCommandClass(playerOnly = true) public class CCommand extends ICommand2MC { @Command2.Subcommand - public boolean def(CommandSender sender, @Command2.OptionalArg String color) { - Player player = (Player) sender; + public boolean def(Player player, @Command2.OptionalArg String color) { ChatPlayer p = TBMCPlayer.getPlayer(player.getUniqueId(), ChatPlayer.class); if (color == null) { if (PluginMain.permission.has(player, "thorpe.color.rainbow")) {