13
0
geforkt von Mirrors/Paper

Fix PluginMeta#getDisplayName (#9038)

* fix plugin versioning

* fix properly

* fix version command

* ngl idk where my logic was behind this
Dieser Commit ist enthalten in:
Ryan 2023-03-27 22:56:09 -04:00
Ursprung 8e509e0179
Commit 06eb9f83ec

Datei anzeigen

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