Katton.log
sends a chat message to only you (the owner of the currently running script) regardless of who triggered it. nobody else ever sees these messages, which makes them perfect for debugging without spamming
Katton.log.info(message)
Katton.log.warn(message)
Katton.log.error(message)
the three only differ in color (info is neutral, warn is yellow, error is red). functionally they behave identically
basic usage
@Katton.command(name = "buy", permission = "all")
function buyItem(sender, args) {
if (args.size() == 0) {
sender.sendMessage("&cusage: /katton run buy <item>") // tells the PLAYER what went wrong
return
}
Katton.log.info(sender.name + " ran buy with args: " + args) // tells only YOU, for debugging
}