EngineHub / Piston

A generic command system, with tie-ins to many Minecraft platforms such as Bukkit, Forge, and Sponge.
GNU General Public License v3.0
17 stars 3 forks source link

Error handling should use a Component message if possible #43

Open octylFractal opened 1 month ago

octylFractal commented 1 month ago

Right now our CommandException can take in rich Components, but things like UsageException embed server-side translations in them. We should have an interface to extract a Component from an exception, e.g. with WorldEdit it also has exceptions with Components, so these are kept through everything.