GlowstoneMC / Glowstone

A fast, customizable and compatible open source server for Minecraft: Java Edition
https://glowstone.net
Other
1.9k stars 273 forks source link

Command localization, step 1 #981

Closed Pr0methean closed 5 years ago

Pr0methean commented 5 years ago

This creates an abstract base class for commands which extend VanillaCommand and need i18n, so they will speak to players in their own locale if available. (To non-player CommandSender instances, they'll speak the server locale.)

Subsequent PRs will do the same for BukkitCommand, make all the concrete command classes extend these two, and add tests to ensure no missing or unused entries in commands.properties.

mastercoms commented 5 years ago

Thank you for your contribution to Glowstone!