mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
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:
parent
8e509e0179
commit
06eb9f83ec
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
+ }
|
||||
|
|
Loading…
Reference in a new issue