Creating a Startup Script - RoryMCDev/RoryMC GitHub Wiki

In order for this to work, you MUST have Java 8 installed!

Once you have downloaded and placed Rory into its own folder, you will need to create a startup script; similar to how you'd run a Bukkit server.

Windows

  • Create a new text file in the same location as the Rory jar file, and call it run.bat. Open this with a text editor (preferably Notepad++), and insert the text below:
@echo off
java -Xms1024M -jar Rory.jar
pause
  • Double-click the run.bat, and Rory should start up. Rory will generate all the needed files.

macOS

  • Create a text file called run.command, and open it with a text editor such as TextEdit or TextMate. Type the text below into the run.command file:
#!/bin/bash 
cd "$( dirname "$0" )" 
java -Xms1024M -jar Rory.jar
  • Open Terminal, and type in chmod a+x (Do NOT press return!), and drag your run.command file into the Terminal.
  • Press return on your keyboard, and Rory will start up. Rory will generate all the needed files.

Linux

  • Create a file called run.sh, and open it with a text editor. Type the text below into your run.sh file:
#!/bin/sh 
cd "$( dirname "$0" )" 
java -Xms1024M -jar Rory.jar
  • In your default terminal application, make the file executable by running chmod +x ~(dir)/run.sh where dir is the name of the folder Rory is in, or by changing the file permissions;
  • Open your default terminal application, and type ./run.sh to run Rory. Rory will generate all the needed files.