More components, broadcasts #98
1 changed files with 1 additions and 3 deletions
|
@ -4,7 +4,6 @@ import buttondevteam.chat.ChatPlayer;
|
||||||
import buttondevteam.chat.PluginMain;
|
import buttondevteam.chat.PluginMain;
|
||||||
import buttondevteam.lib.chat.*;
|
import buttondevteam.lib.chat.*;
|
||||||
import buttondevteam.lib.player.TBMCPlayer;
|
import buttondevteam.lib.player.TBMCPlayer;
|
||||||
import org.bukkit.command.CommandSender;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@CommandClass(path = "u c", helpText = {
|
@CommandClass(path = "u c", helpText = {
|
||||||
|
@ -14,8 +13,7 @@ import org.bukkit.entity.Player;
|
||||||
@OptionallyPlayerCommandClass(playerOnly = true)
|
@OptionallyPlayerCommandClass(playerOnly = true)
|
||||||
public class CCommand extends ICommand2MC {
|
public class CCommand extends ICommand2MC {
|
||||||
@Command2.Subcommand
|
@Command2.Subcommand
|
||||||
public boolean def(CommandSender sender, @Command2.OptionalArg String color) {
|
public boolean def(Player player, @Command2.OptionalArg String color) {
|
||||||
Player player = (Player) sender;
|
|
||||||
ChatPlayer p = TBMCPlayer.getPlayer(player.getUniqueId(), ChatPlayer.class);
|
ChatPlayer p = TBMCPlayer.getPlayer(player.getUniqueId(), ChatPlayer.class);
|
||||||
if (color == null) {
|
if (color == null) {
|
||||||
if (PluginMain.permission.has(player, "thorpe.color.rainbow")) {
|
if (PluginMain.permission.has(player, "thorpe.color.rainbow")) {
|
||||||
|
|
Loading…
Reference in a new issue