Skip to content

Instantly share code, notes, and snippets.

@wiselder
Last active March 29, 2022 16:59
Show Gist options
  • Save wiselder/2dc3f56ebd0a42cc73747ec294e8f5ad to your computer and use it in GitHub Desktop.
Save wiselder/2dc3f56ebd0a42cc73747ec294e8f5ad to your computer and use it in GitHub Desktop.
@Pack
@Command("say <message>")
public class ActionCommand {
@Bind(pattern = "<message>")
public final ArgumentType<String> message = StringArgumentType.greedyString();
@Bind(pattern = "<message>")
public void send(CommandSender source, @Let("<message>") String message) {
source.sendMessage(message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment