Suffix After Entering in Command

Discussion in 'Plugin Development' started by SuperNovaMC, Apr 13, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    SuperNovaMC

    Hello everyone, my problem is I have this suffix after I enter in my commands. They work perfect, but they have that same suffix every time!

    Here is a screenshot of the problem:
    http://i57.tinypic.com/30a43s3.png

    This is my onCommand section. My plugin.yml is set up.

    public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
    Player player = (Player) sender;
    if(commandLabel.equalsIgnoreCase("record")){
    Bukkit.broadcastMessage((player.getDisplayName () + ChatColor.AQUA + " is recording a video!"));
    }
    if(commandLabel.equalsIgnoreCase("stream")){
    Bukkit.broadcastMessage((player.getDisplayName() + ChatColor.AQUA + " is livestreaming!"));
    }
    if(commandLabel.equalsIgnoreCase("charity")){
    Bukkit.broadcastMessage((player.getDisplayName() + ChatColor.AQUA + " is livestreaming for charity"));
    }
    if(commandLabel.equalsIgnoreCase("end")){
    Bukkit.broadcastMessage((player.getDisplayName() + ChatColor.AQUA + " has ended their recording/livestream!"));
    }
    if(commandLabel.equalsIgnoreCase("youtubeannouncer")){
    sender.sendMessage(ChatColor.GOLD + "----------------------------------------");
    sender.sendMessage(ChatColor.BLUE + "YoutubeAnnouncer");
    sender.sendMessage(ChatColor.BLUE + "Developed by MineStein");
    sender.sendMessage(ChatColor.RED + "Command Citation:");
    sender.sendMessage(ChatColor.GREEN + "/record | Alerts users of your recording | p: youtubeannouncer.record");
    sender.sendMessage(ChatColor.GREEN + "/stream | Alerts users of your livestream | p: youtubeannouncer.stream");
    sender.sendMessage(ChatColor.GREEN + "/charity | Alerts users of your charity livestream | p: youtubeannouncer.charity");
    sender.sendMessage(ChatColor.GREEN + "/end | Alerts users to the and of your stream/recording/event | p: youtubeannouncer.end");

    sender.sendMessage(ChatColor.GOLD + "----------------------------------------");
     
  2. Offline

    Zix

    You have to make your onCommand return true, not false
     
Thread Status:
Not open for further replies.

Share This Page