Skip to content

JAR Automover Batch skript

Latest
Compare
Choose a tag to compare
@Mikimoka Mikimoka released this 01 Oct 19:22

JAR Automoveri v0.1 by Mikimoka
This will automatical move already compiled jar file + start paperspigot
You still have to compile jar file with maven (we dont do that) + Change directions in this batch skript.
Works only in WINDOWS OS (sorry linux or mac users)

Warning THIS WILL overwrite existing Pluginname-1.0.0.jar

Note: i use -nogui in paperspigot start command you mighty have remove if you want gui or have some old paperspigot server that does not support that.

::HOW TO USE?
OPEN and EDIT startteri.bat with notepad

::0. batch file must be located in your paperspigot server root folder but you can right click it send it to desktop (create shortcut)
::1. change this LINE "D:\EXPLIPSE\workspace\Pluginname\target\Pluginname-1.0.0.jar" to EXACT PATH where jar file that you want to move is.
::2. change this line "D:\paperspigot\plugins" to EXACT PATH where paperspigot PLUGINS FOLDER IS(place where we are moving that jar file)
::3. OPTIONAL: in case you want more or less ram in that paperspigot server edit these: -Xms5G -Xmx5G in that java command line
::4. Create shortcut startteri.bat shortcut to desktop (right click startteri.bat and click send to desktop (create shortcut)
::5. Compile your plugin in IntelliJ IDEA or EXPLIPSE using MAVEN and then CLICK startteri.bat