From 06eb9f83ecf8dbe7bfbfef8d618fcc624145e9d1 Mon Sep 17 00:00:00 2001 From: Ryan <12160169+TheRealRyGuy@users.noreply.github.com> Date: Mon, 27 Mar 2023 22:56:09 -0400 Subject: [PATCH] Fix PluginMeta#getDisplayName (#9038) * fix plugin versioning * fix properly * fix version command * ngl idk where my logic was behind this --- patches/server/Paper-Plugins.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/Paper-Plugins.patch b/patches/server/Paper-Plugins.patch index 08ff10b757..94d1c06ea6 100644 --- a/patches/server/Paper-Plugins.patch +++ b/patches/server/Paper-Plugins.patch @@ -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; + }