1414import com .osiris .dyml .YamlSection ;
1515import com .osiris .dyml .exceptions .*;
1616import com .osiris .jlib .logger .AL ;
17+ import me .hsgamer .mcserverupdater .UpdateBuilder ;
1718
1819import java .io .IOException ;
20+ import java .util .stream .Collectors ;
1921
2022public class UpdaterConfig extends MyYaml {
2123
@@ -147,11 +149,11 @@ public UpdaterConfig() throws IOException, DuplicateKeyException, YamlReaderExce
147149 server_updater_profile = put (name , "server-updater" , "profile" ).setDefValues ("AUTOMATIC" ).setComments (
148150 "Note that your servers jar/executable NAME will not be updated, even if set to AUTOMATIC, to increase compatibility with external scripts or other programs." ,
149151 "The actual content/file will update though, thus rename it to something like server.jar, and do not include version info to prevent confusion." );
152+ String serverSoftwareNames = String .join (" " , UpdateBuilder .getUpdaterNames ());
153+
150154 server_software = put (name , "server-updater" , "software" ).setDefValues ("paper" ).setComments (
151155 "Select your favorite server software. Enter the name below. Supported software:\n " +
152- "- Minecraft (paper, travertine, waterfall, velocity, folia, pandaspigot, purpur, bungeecord, " +
153- "spigot, patina, pufferfish, fabric, fabric-dev, spongevanilla, spongevanilla-recommended, " +
154- "spongeforge, spongeforge-recommended, mohist, plazma, kaiiju, divine, leaf, leaves, luminol)\n " +
156+ "- Minecraft (" +serverSoftwareNames +")\n " +
155157 "- Any Steam game (enter the app-id below, go to https://steamdb.info/ and search for: \" <game-name> server\" to find the app-id)\n " +
156158 "Note: If you change this, also reset the \" build-id\" to 0 to guarantee correct update-detection." );
157159 server_steamcmd_login = put (name , "server-updater" , "steam-cmd-login" )
@@ -161,6 +163,7 @@ public UpdaterConfig() throws IOException, DuplicateKeyException, YamlReaderExce
161163 "If left empty, taken from general.yml, if also empty, taken from server jar.\n " +
162164 "A list of supported versions can be found in the links below:\n " +
163165 "- Minecraft versions: https://papermc.io/api/v2/projects/paper | https://papermc.io/api/v2/projects/waterfall | https://papermc.io/api/v2/projects/travertine | https://papermc.io/api/v2/projects/velocity | https://purpur.pl3x.net/downloads | https://fabricmc.net/use/installer\n " +
166+ "- If not listed, you must google to get the project and find its latest version." +
164167 "Enter \" latest\" as version to always fetch the latest release (major + minor).\n " +
165168 "Pufferfish+ (and its purpur variant) are also supported by appending -plus and/or -purpur to the version.\n " +
166169 "Note: Only update to a newer version if you are sure that all your essential plugins support that version.\n " +
0 commit comments