Fix -v flag on plugins command
This commit is contained in:
parent
9ecff05b0c
commit
0478583c12
3 changed files with 3 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ public class BukkitCommandPlugins extends CommandPlugins<BukkitPlugin, Plugin, B
|
|||
Template.of("plugin", description.getName())
|
||||
));
|
||||
if (hasVersionFlag) {
|
||||
builder.append(messages.get(MessageKey.PLUGINS_FORMAT).toComponent(
|
||||
builder.append(messages.get(MessageKey.PLUGINS_VERSION).toComponent(
|
||||
Template.of("version", description.getVersion())
|
||||
));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public class BungeeCommandPlugins extends CommandPlugins<BungeePlugin, Plugin, B
|
|||
Template.of("plugin", description.getName())
|
||||
));
|
||||
if (hasVersionFlag) {
|
||||
builder.append(messages.get(MessageKey.PLUGINS_FORMAT).toComponent(
|
||||
builder.append(messages.get(MessageKey.PLUGINS_VERSION).toComponent(
|
||||
Template.of("version", description.getVersion())
|
||||
));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public class VelocityCommandPlugins extends CommandPlugins<VelocityPlugin, Plugi
|
|||
Template.of("plugin", description.getId())
|
||||
));
|
||||
if (hasVersionFlag) {
|
||||
builder.append(messages.get(MessageKey.PLUGINS_FORMAT).toComponent(
|
||||
builder.append(messages.get(MessageKey.PLUGINS_VERSION).toComponent(
|
||||
Template.of("version", description.getVersion().orElse("<UNKNOWN>"))
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue