package me.rbrickis.mojo.bukkit;

import me.rbrickis.mojo.annotations.Command;
import me.rbrickis.mojo.annotations.Default;
import me.rbrickis.mojo.annotations.Text;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class ExampleCommands {

    @Command(aliases = "hello")
    @me.rbrickis.mojo.bukkit.annotations.Player
    public void helloWorld(Player player) {
        player.sendMessage(ChatColor.GOLD + "Hello, " + player.getName());
    }

    @Command(aliases = {"broadcast", "bc"})
    public void broadcast(CommandSender sender, @Text @Default("&6Hello World!") String message) {
        Bukkit.broadcastMessage(ChatColor.translateAlternateColorCodes('&', message));
    }


}

@@ -764,11 +764,434 @@
 %0A    %7D%0A%0A
+    @Command(aliases = %7B%22message%22, %22msg%22%7D)%0A    public void message(Player sender, Player receiver, @Text String message) %7B%0A        if (receiver == null) %7B%0A            sender.sendMessage(ChatColor.RED + %22Could not find player!%22);%0A        %7D else %7B%0A            receiver.sendMessage(ChatColor.GRAY + %22(From %22 + sender.getDisplayName() + ChatColor.GRAY + %22): %22%0A                    + ChatColor.WHITE + message);%0A        %7D%0A    %7D%0A%0A
 %0A%7D%0A

Add message command because y not?