:PaperCheck
if exist "..\..\.jars\Version\1.15.2 Paper (2).jar" (
echo [92mUpdate found - updating.[0m
del "..\..\.jars\Version\1.15.2 Paper.jar"
ren "..\..\.jars\Version\1.15.2 Paper (2).jar" "1.15.2 Paper.jar"
)
goto %Version%Start
Description:
This specifically borks when attempting to delete the version. If multiple servers are utilizing the jar, the file cannot be modified or deleted.
Recommended changes:
[x] "Caching" the version in a folder specifically for each individual server, using the main Version\%VERSION% %VERSIONNAME%.jar as the basis
[x] Version Check Rewrite: Instead of checking for the literal file %VERSION% %VERSIONNAME% New.jar:
[x] Combine the separated Version checks & run script lines and replace their respective names to a variable %VERSIONNAME%
[ ] Likewise for %VERSION%
[x] implement a Update folder
[x] Check the Update folder for an existing file that contains the %VERSION% and %VERSIONNAME%
[x] Delete old file and replace with new; then re-cache
Relevant File: https://github.com/BehrRiley/The-Network/blob/master/.control/!start_1152production.bat
Relevant Code:
Description: This specifically borks when attempting to delete the version. If multiple servers are utilizing the jar, the file cannot be modified or deleted.
Recommended changes:
Version\%VERSION% %VERSIONNAME%.jar
as the basis%VERSION% %VERSIONNAME% New.jar
:%VERSIONNAME%
%VERSION%
Update
folderUpdate
folder for an existing file that contains the%VERSION%
and%VERSIONNAME%