Fix PluginMeta#getDisplayName (#9038)

* fix plugin versioning

* fix properly

* fix version command

* ngl idk where my logic was behind this
This commit is contained in:
Ryan 2023-03-27 22:56:09 -04:00
parent 8e509e0179
commit 06eb9f83ec

View file

@ -966,7 +966,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ PluginMeta config = this.configuration;
+ PluginDescriptionFile pluginDescriptionFile = new PluginDescriptionFile(
+ config.getName(),
+ config.getDisplayName(),
+ config.getName().replace('_', ' '),
+ config.getProvidedPlugins(),
+ config.getMainClass(),
+ "", // Classloader load order api
@ -4500,7 +4500,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ .build();
+ }
+
+ pluginConfiguration.displayName = pluginConfiguration.name.replace('_', ' ');
+ pluginConfiguration.displayName = pluginConfiguration.name.replace('_', ' ') + " v" + pluginConfiguration.version;
+
+ return pluginConfiguration;
+ }