Setting up a server
- Note: The name of the craftbukkit .jar file must match the one you download. (currently craftbukkit-1.2.5-R4.0.jar)
- Note: Unless you have a multi-homed machine and know what this means/requires, server-ip= in server.properties MUST remain unchanged from default and be blank.
- Note: When running a server for the first time, errors will show up. Do not worry as this is normal; the server is generating files and folders needed to run as they do not exist yet.
- Note: The Bukkit server is intended as a complete replacement for the official Mincraft Server downloaded from Mincraft.net and is not normally ran at the same time on a single computer. It is possible however, to copy your 'World' data files previously created within a Mincraft Server into your Bukkit folders to continue use of your previous game. As always, backup your data and configuration prior to migrating to Bukkit.
- Download CraftBukkit's latest build: CraftBukkit - Recommended Build
- Put the .jar file in the directory you'd like the server to run from
- Open notepad and type:
@ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar PAUSE
- Note: If you are running java in 32-bit mode on a 64-bit machine, change %ProgramFiles% to %ProgramFiles(x86)%
If you are running Java 7, type this instead:
@ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar PAUSE
Otherwise you can use this code that i Created (x7l7j8cc) and follow the instruction (the default RAM is 1024MB=1GB)
@ECHO OFF color 0a SET BINDIR=%~dp0 CD /D "%BINDIR%" echo. echo What Java Version you Are Using (6 or 7)??? set /p JR=jre set JR=jre%JR% echo Java Version Setted to %JR% Timeout /t 2 /nobreak >nul cls color 0a echo. echo Type CraftBukkit FileName without ext. [ex. craftbukkit-1.2.5-R4.0] set /p CBN= echo CraftBukkit Setted to %CBN% Timeout /t 2 /nobreak >nul cls color 0c echo. if %PROCESSOR_ARCHITECTURE%==x86 ( echo Windows 32bit Detected! echo Program Directory Setted to %programfiles% SET PD=%programfiles% ) else ( echo Windows 64bit Detected! SET PD64=%programfiles% SET PD32=%programfiles(x86)% echo. echo You want to Run Java from x32 or x64 ProgramFiles??? echo x32 = %PD32% echo x64 = %PD64% set /p PGF=Run in x set PGF=x%PGF% if %PGF%==x64 ( echo Program Directory Setted to %PD64% set PD=%PD64% ) else ( echo Program Directory Setted to %PD32% set PD=%PD32% ) ) Timeout /t 4 /nobreak >nul cls color 0a echo. echo Starting CraftBukkit... Timeout /t 2 /nobreak >nul color 08 "%PD%\Java\%JR%\bin\java.exe" -Xmx1024M -Xms1024M -jar %CBN%.jar color 0a echo CraftBukkit Stopped... echo. Timeout /t 5 /nobreak
- 4. Save the document as RUN.bat (not as a .txt)
- 5. Double Click RUN.bat and you're away!
- 6. When you're done toying, issue "stop" command in console.
Please note that the full directory of the java.exe doesn't need to be entered. just entering "Java" will do just fine, so one could use the following codes to ensure universal compatibility.
@ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" java -Xmx1024M -Xms1024M -jar craftbukkit.jar PAUSE
Or, the following can be used (although may not work on all machines) It is a lot shorter than the previous ones.
@ECHO OFF java -Xmx1024M -Xms1024M -jar "%~dp0craftbukkit.jar" PAUSE
- See also: Setting up a remote Linux server
- Download CraftBukkit's latest build: CraftBukkit - Recommended Build
- Put the .jar in a folder, for this example we'll use a generic one: ~/craftbukkit
- Move to the above directory in terminal with 'cd ~/craftbukkit'
- Create a new text document in the minecraft folder and name it craftbukkit.sh
- Edit the document and paste this into it:
cat > craftbukkit.sh << EOF #!/bin/sh BINDIR=$(dirname "$(readlink -fn "$0")") cd "$BINDIR" java -Xmx1024M -Xms1024M -jar craftbukkit.jar EOF chmod +x craftbukkit.sh
6. Save the shell and make sure that it is executable, then open it in terminal. A console window will open and close quickly.
- 6. Then, in terminal, type '~/craftbukkit/craftbukkit.sh' to run to start the server.
- 7. When you're done playing around, issue the "stop" command in console.
If you plan to run the server more permanently an init script like this one (recommended) 
If you want to run your server with screen, you can use a script like this one (recommended) ABM
For CentOS Users - A little more detailed page for CentOS.
Mac OS X
- Install Java
- Since OS X 10.7 Java does not come packaged with OS X. You will need to install java from the Apple's website http://support.apple.com/kb/DL1421
- Obtaining the Server Files
- To run a server you will need the server jars, i.e. the server files. We will need a place to put the files.
- Create a New Folder
- Open up finder, and create a new folder in your Home folder named CraftBukkit
- Download the File
- Download the server files. You can download the latest builds from the front page of the wiki.
- Note: Download the stable build if you are not chasing the cutting edge in the development build
- Move the File
- Move the file from the Downloads folder to the CraftBukkit folder you created.
- Rename the File
- We will rename it craftbukkit.jar
- Obtaining startup script
- To easily start the server you will need a startup script. The following is a basic server script to start your server.
- Open up TextEdit set it to plan text mode under format and paste the following in
- cd "$( dirname "$0" )"
- java -Xmx1024M -Xms1024M -jar craftbukkit.jar
- Save the file
- Save it in your CraftBukkit folder as start_server.command
- Allow the script to run
- Open up Terminal.app
- Type into Terminal.app
- chmod a+x
Warning: Do not hit return
- drag the start_server.command into Terminal.app
- hit return
- Starting the server
- From this point on you can start the server by double-clicking start_server.command.
- You will need to run the server once for it to generate some configuration files.
Warning: To stop the server, do not close the terminal/command prompt window. Instead, type 'stop' into the console. Closing the terminal window without stopping the server could lead to corruption of the save files.
ALTERNATE METHOD [Only for Advanced Users]:
Open Terminal (Found in Application/Utilities) and paste:
cd ~/Desktop/ mkdir BukkitServer cd BukkitServer/ curl -O http://cbukk.it/craftbukkit.jar mv craftbukkit-1.1-R3.jar CraftBukkit.jar echo "cd ~/Desktop/BukkitServer/" >> start.command echo "java -Xms[RAM]M -Xmx[RAM]M -jar CraftBukkit.jar" >> start.command chmod +x start.command open -a TextEdit start.command
Textedit should open a document called "LaunchServer.command". Find [RAM] and replace it with:
512 or 1024 or 1536 or 2560 or 3072 or 5120
That is the ram amount the server will have.
512=512MB; 1024=1GB; 1536=1.5GB; 2560=2.5GB; 3072=3GB; 5120=5GB
The server is installed on your Desktop, in "Bukkit Server". To start it double click "LaunchServer.command".
|Language||English • Беларускі • Deutsch • Español • Suomi • Français • Italiano • 한국어 • Nederlands • Norsk (bokmål) • Polski • Português • Русский|