Parse MiniMessage in default command usage & descriptions (#6018)

This commit is contained in:
Josh Roy 2025-02-05 08:14:09 -05:00 committed by GitHub
parent 1a4d75ced7
commit d232ce4037
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -612,8 +612,8 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
for (final String commandName : this.getDescription().getCommands().keySet()) {
final Command command = this.getCommand(commandName);
if (command != null) {
command.setDescription(tlLiteral(commandName + "CommandDescription"));
command.setUsage(tlLiteral(commandName + "CommandUsage"));
command.setDescription(AdventureUtil.miniToLegacy(tlLiteral(commandName + "CommandDescription")));
command.setUsage(AdventureUtil.miniToLegacy(tlLiteral(commandName + "CommandUsage")));
}
}