-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEZSetup.bat
51 lines (51 loc) · 2.97 KB
/
EZSetup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
color 17
echo off
cls
echo ViaVersionProtocolSupport Setup Utility
echo ═══════════════════════════════════════
echo.
echo Welcome to ViaVersionProtocolSupport.
echo.
echo Copyright (C) 2015~2024, Approximaster Studios 2004. All Rights Reversed.
echo This Utility Helps You Switch to ViaVersionProtocolSupport(Note that it does not supports Waterfall->Velocity!).
echo.
echo Press Any Key To Continue...
cd plugins
cls
echo ViaVersionProtocolSupport Setup Utility - Loading: Bukkit Setup
echo ═══════════════════════════════════════════════════════════════
echo.
echo The ViaVersionProtocolSupport is Not Distributed. however, you can distribute it anyways.
echo.
echo Installing ViaVersion...
powershell.exe Invoke-WebRequest https://hangarcdn.papermc.io/plugins/ViaVersion/ViaVersion/versions/5.2.0/PAPER/ViaVersion-5.2.0.jar -OutFile plugins/viaversion.jar
powershell.exe Invoke-WebRequest https://hangarcdn.papermc.io/plugins/ViaVersion/ViaVersion/versions/5.2.0/PAPER/ViaBackwards-5.2.0.jar -OutFile plugins/viabackwards.jar
powershell.exe Invoke-WebRequest https://hangarcdn.papermc.io/plugins/ViaVersion/ViaVersion/versions/4.0.4/PAPER/ViaRewind-4.0.4.jar -OutFile plugins/viarewind.jar
cls
echo ViaVersionProtocolSupport Setup Utility - Formatting PS(S) Data
echo ═══════════════════════════════════════════════════════════════
echo.
echo WARNING!
echo This Will Format All ProtocolSupportStuff Data and the JAR!
echo.
:FormatPSSD
set /p PSSPATH=PSSD:
if PSSPATH equ *.* ( echo Why Do You Want to Format Your Plugin List All Of the sudden? goto :FormatPSSD ) else ( goto :FormatPSSData )
if PSSPATH equ %SystemDrive% ( echo Why Do You Want to Nuke Your Computer All Of The Sudden? goto :FormatPSSD ) else ( goto :PSData )
:FormatPSSData
set /p PSSPATH=PSS:
if PSSPATH equ *.* ( echo Why Do You Want to Format Your Plugin List All Of the sudden? goto :FormatPSSData ) else ( goto :PSData )
if PSSPATH equ *.* ( echo Why Do You Want to Format Your Plugin List All Of the sudden? goto :FormatPSSData ) else ( goto :PSData )
:PSData
set /p PSSPATH=PSS:
if PSSPATH equ *.* ( echo Why Do You Want to Format Your Plugin List All Of the sudden? goto :PSData ) else ( goto :FORMAT )
:FORMAT
cls
echo ViaVersionProtocolSupport Setup Utility - Formatting ProtocolSupport(Stuff) Data...
echo ═══════════════════════════════════════════════════════════════════════════════════
echo.
echo Please Wait While The Setup Utility Deletes ProtocolSupport
echo and it's data...
echo.
%Comspec% /c rd /s /q %PSSPATH%
del