diff --git a/README.md b/README.md index 9da296f..5c64bb4 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,9 @@ Download the server: This will download the 1.6.4 Minecraft server JAR. +Or get it from the repo +`wget https://gitea.virtonline.eu/2HoursProject/minecraft-1.6.4/src/branch/main/server/server.jar` + After downloading the JAR, accept the EULA: `echo eula=true > eula.txt` @@ -49,7 +52,7 @@ Set the server to "offline mode" Running your server in offline mode allows players to connect without authenticating with the Minecraft session servers. Authenticating with the Minecraft session servers ensures that a player is connecting with a registered and paid Minecraft account. Running your server in offline mode can be useful when there are the Minecraft session servers have problems and prevent players from connecting. However, it introduces security risks, as **it allows anyone to use any username to join your server**. For example, one would be able to login as any white listed player, or as an op and run all administrator commands. If you need online mode to be enabled/disabled on your server, change the following setting in server.properties as explained above to true or false as needed: -`sed -i server.properties 's/online-mode=true/online-mode=false/g' server.properties` +`sed -i 's/online-mode=true/online-mode=false/g' server.properties` See all available server properties at https://help.akliz.net/docs/edit-serverproperties @@ -61,3 +64,10 @@ This will run the Minecraft server with 1GB (1024MB) of RAM. If you want to give Save worlds `save-all` +# Run the client on Linux + +Adjust the launch script to your path +`sed -i "s#/MY_PATH#${PWD}/minecraft#g" minecraft.sh` + +Run the script +`./minecraft.sh` diff --git a/client.tgz b/client.tgz new file mode 100644 index 0000000..710d5f7 Binary files /dev/null and b/client.tgz differ diff --git a/minecraft.sh b/minecraft.sh new file mode 100755 index 0000000..8fba131 --- /dev/null +++ b/minecraft.sh @@ -0,0 +1,2 @@ +/MY_PATH/runtime/jre-legacy/linux/jre-legacy/bin/java -Djava.library.path=/MY_PATH/versions/1.6.4/natives \ +-cp /MY_PATH/libraries/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar:/MY_PATH/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar:/MY_PATH/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar:/MY_PATH/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar:/MY_PATH/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar:/MY_PATH/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar:/MY_PATH/libraries/argo/argo/2.25_fixed/argo-2.25_fixed.jar:/MY_PATH/libraries/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar:/MY_PATH/libraries/com/google/guava/guava/14.0/guava-14.0.jar:/MY_PATH/libraries/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar:/MY_PATH/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar:/MY_PATH/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:/MY_PATH/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:/MY_PATH/libraries/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar:/MY_PATH/libraries/org/lwjgl/lwjgl/lwjgl/2.9.0/lwjgl-2.9.0.jar:/MY_PATH/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.0/lwjgl_util-2.9.0.jar:/MY_PATH/versions/1.6.4/1.6.4.jar -Xmx3000M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Dfml.ignoreInvalidMinecraftCertificates=true -Dfml.ignorePatchDiscrepancies=true -Djava.net.preferIPv4Stack=true -Dminecraft.applet.TargetDirectory=/MY_PATH -Dlog4j.configurationFile=/MY_PATH/assets/log_configs/client-1.7.xml net.minecraft.client.main.Main --username cpu --session token:null:0 --version 1.6.4 --gameDir /MY_PATH --assetsDir /MY_PATH/assets/virtual/legacy --width 925 --height 530 diff --git a/server/server.jar b/server/server.jar new file mode 100644 index 0000000..5f54537 Binary files /dev/null and b/server/server.jar differ