Imperat is a high performance generic command framework, designed to facilitate the creation of commands and replace the old boilerplate code with new modern and well organized code for your commands! Built with ❤️
@RootCommand({"message", "msg"})
public class MessageCommand {
@Execute()
public void exec(Player sender, Player target, @Greedy String message) {
// send private message to the target
target.sendMessage("From " + sender.getName() + ": " + message);
}
}