okay, go to http://bukkit.org/
click on:
on the next page you will see this just after the Windows heading:
1) download the file you see in the image "Download CraftBukkit's latest recommended build."
2) where it says "Put the .jar in the desired directory" just make a folder on your desktop called "server" or whatever you want it to be called (it isn't important)
3) as it says, open notepad (go to start, run, type in "notepad" hit enter, and paste the below into it.
Code:
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
PAUSE
make sure you are running java 6. if you have java 7, do as the page says and instead of the above, use:
Code:
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre7\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
PAUSE
4. Save the document as RUN.bat (not as a .txt) into the folder you previously called "server" with the download. see below:
5. Double Click RUN.bat and you're away!
6. When you're done toying, issue "stop" command in console.
okay, that's the easy bit. if you follow that, you should have a console window that after a moment or two, looks like:
the errors at the top of the window are fine: that's just it making the files it needs as they aren't already there.
next, type "stop" into that window, and it will close. to change some of the settings, you want to find in the "server" folder this file:
easiest way of opening it is to again open notepad. once there, goto file, then open, then...
change the little drop down that says "text documents (*txt) to...
once you've done that, you will see "server.properties" in the window of other files and folders, etc.
go ahead and open it, and you should see the default settings:
Code:
#Minecraft server properties
#Mon Oct 17 08:19:21 BST 2011
level-name=world
allow-nether=true
view-distance=10
spawn-monsters=true
online-mode=true
difficulty=1
gamemode=0
spawn-animals=true
max-players=20
server-ip=
pvp=true
level-seed=
server-port=25565
allow-flight=false
white-list=false
motd=A Minecraft Server
the only things you want to change here are "allow-flight=false" to "allow-flight=true" and the motd part at the end from "A Minecraft Server" to whatever you want it to say. also, "gamemode=0" - 0 is survival, 1 is creative, change this depending on what you want. the rest can be left. Make a note of the "server-port=25565" part, that's the port you will need to forward on your router.
the above info, if you follow it as i've done it, you should end up with a working minecraft server. i did each of these steps here as ive written it just to make ure it worked at the end! to test it, just double click "run.bat" again in the server folder and you'll see that window appear again similar to above (you closed it earlier, remember) open minecraft and go to multiplayer. click add new server, and in the IP field enter either "localhost" or "127.0.0.1" and hopefully that should be it!
also, if you don't know what version of java you have, go to control panel, find "Java" and open that icon. at the top of the window that appears it will say "about" click that and you should see:
once you've found this out, the bit where you're pasting code into note pad should be that much easier.
Right ... to forward the port. This is where it'd be useful to know what sort of internet connection you're using (is it a single modem that connects directly into your pc? does your pc plug into a router? whos your provider? etc. let us know these bits of info and the next steps are easy as well.
---------- Post added 2011-10-17 at 08:55 AM ----------
also, i thought it'd be useful to replicate all the steps above and just add the folder to a rar file.
http://wozarib.com/minecraft/index.p...ile=server.rar
extract that onto your desktop. it should create a folder called server. inside of that folder are 3 things:
craftbukkit-0.0.1-SNAPSHOT.jar (latest version as of this post)
run[java6].bat
run[java7].bat
if you got lost somehow above, try running first run[java6].bat - if you don't have version 6, it will just error and do nothing. then try run[java7].bat and you'll see the console window above.