Revxrsal / Lamp

A modern annotations-driven commands framework for Java and Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

commandError Kotlin DSL removing apostrophes

joshbker opened this issue · comments

commented

When using the commandError method to return in a command, the message sent in Minecraft chat does not contain any of the apostrophes that are in the code.

commented

Apologies for the late reply. commandError, just like all other exceptions and implementations of CommandActor#xxxLocalized, use Java's MessageFormat syntax. To use quotes, you have to escape them by using double single-quotes''