CommandFeedback

Small shared helpers for the Brigadier command executors: coloured feedback and the "block you're looking at" lookup. Kept separate so both the command tree and the testable DespiActions can use them.

Functions

Link copied to clipboard
fun error(sender: CommandSender, msg: String)
Link copied to clipboard
fun info(sender: CommandSender, msg: String)
Link copied to clipboard
fun success(sender: CommandSender, msg: String)
Link copied to clipboard
fun targetBlock(player: Player): Location?

The block player is looking at within 5 blocks, or null (with an error) if none.

Link copied to clipboard
fun warning(sender: CommandSender, msg: String)