Revxrsal / Lamp

A modern annotations-driven commands framework for Java and Kotlin
MIT License
202 stars 38 forks source link

commandError Kotlin DSL removing apostrophes #72

Closed joshbker closed 1 year ago

joshbker commented 1 year ago

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.

Revxrsal commented 1 year ago

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''