como executar o servidor Spigot usando o morcego

@echo off
echo This Will Restart Your Server If It Crashes!
title Minecraft Console
:StartServer
java -Xmx1G -jar SERVER_FILE_NAME.jar
echo (%time%) Server closed/crashed... restarting!
goto StartServer
HqrizonXD