Package io.github.shayf0x.spigotwarden
Class Manager
java.lang.Object
io.github.shayf0x.spigotwarden.Manager
It's useful class with many useful methods for SpigotWarden
Methods:
-
-
-
-
-
-
-
-
Methods:
-
createIfNotExistBuildOutput()
-
testBuildTools(String)
-
testSpecialSource()
-
install(URL, Path)
-
newUrl(String)
-
cmdBuildTools(String)
-
runCommand(String[], Path)
-
resolve(URL, String...)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cmdBuildTools
(String version) this method run BuildTools command to generate all BuildTools' filesboolean
If Output directory doesn't exist, this method create dirvoid
That method install file from internet to paththis method allows easily to generate URL with a String without worrying about the exceptionvoid
runCommand
(String[] content, Path root) run Command like cmd.exe commandsboolean
testBuildTools
(String version) That method test if all files generated by BuildTools and necessary for SpecialSource are presentIf SpecialSource.jar doesn't in plugin folder, this method install his at the latest version
-
Constructor Details
-
Manager
-
-
Method Details
-
createIfNotExistBuildOutput
public boolean createIfNotExistBuildOutput()If Output directory doesn't exist, this method create dir- Returns:
- [boolean] if dir has been created
-
testSpecialSource
If SpecialSource.jar doesn't in plugin folder, this method install his at the latest version- Returns:
- [String] SpecialSource version installed
-
testBuildTools
That method test if all files generated by BuildTools and necessary for SpecialSource are present- Parameters:
version
- [String
] (e.g: 1.19-R0.1-SNAPSHOT).- Returns:
- [boolean] if all BuilderTools files are present
BuildTools files:
-REMAPPED_MOJANG
-MAPS_MOJANG
-REMAPPED_OBF
-MAPS_SPIGOT
-
install
That method install file from internet to path -
newUrl
this method allows easily to generate URL with a String without worrying about the exception -
resolve
-
cmdBuildTools
this method run BuildTools command to generate all BuildTools' files- Parameters:
version
- [String
] - version of spigot (e.g: 1.19-R0.1-SNAPSHOT).
-
runCommand
run Command like cmd.exe commands
-