Projekt Joachims Minecraftserver: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
cd "$BASEDIR/$SDIR" | cd "$BASEDIR/$SDIR" | ||
wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar | wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar | ||
java -jar BuildTools.jar --rev "$SREV" | java -Xms8G -Xmx8G -XX:+UseG1GC -jar BuildTools.jar --rev "$SREV" | ||
# java -jar BuildTools.jar | # java -jar BuildTools.jar | ||
mkdir run | mkdir run | ||
Line 18: | Line 18: | ||
cat <<EOF >start.sh | cat <<EOF >start.sh | ||
#!/bin/sh | #!/bin/sh | ||
java - | java -Xms8G -Xmx8G -XX:+UseG1GC -jar spigot.jar | ||
EOF | EOF | ||
chmod +x start.sh | chmod +x start.sh | ||
Line 40: | Line 40: | ||
Type=forking | Type=forking | ||
User=joachim | User=joachim | ||
ExecStart=/usr/bin/screen -d -m -L -S spigot-v$SREV java - | ExecStart=/usr/bin/screen -d -m -L -S spigot-v$SREV java -Xms8G -Xmx8G -XX:+UseG1GC -jar spigot.jar | ||
WorkingDirectory=$BASEDIR/$SDIR/run | WorkingDirectory=$BASEDIR/$SDIR/run | ||
Restart=on-failure | Restart=on-failure |
Revision as of 19:01, 29 December 2020
Joachims Minecraftserver
Neue Spigot Version? see also /usr/local/spigot/README.txt
SREV=1.16.3 PORT=25565 SDIR="spigot-v$SREV" BASEDIR=/usr/local/spigot mkdir -p "$BASEDIR/$SDIR" cd "$BASEDIR/$SDIR" wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar java -Xms8G -Xmx8G -XX:+UseG1GC -jar BuildTools.jar --rev "$SREV" # java -jar BuildTools.jar mkdir run screen -S spigot cd run cat <<EOF >start.sh #!/bin/sh java -Xms8G -Xmx8G -XX:+UseG1GC -jar spigot.jar EOF chmod +x start.sh ln -sf ../craftbukkit-*.jar craftbukkit.jar ln -sf ../spigot-*.jar spigot.jar ./start.sh sed -i s/false/true/ eula.txt cat <<EOF >server.properties difficulty=3 snooper-enabled=false server-port=$PORT level-name=world motd=Joba's Spigot $SREV Server EOF cat <<EOF >/etc/systemd/system/spigot-$SREV.service [Unit] Description=Spigot v$SREV Minecraft Server RequiresMountsFor=$BASEDIR [Service] Type=forking User=joachim ExecStart=/usr/bin/screen -d -m -L -S spigot-v$SREV java -Xms8G -Xmx8G -XX:+UseG1GC -jar spigot.jar WorkingDirectory=$BASEDIR/$SDIR/run Restart=on-failure [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl start spigot-$SREV.service sleep 1 systemctl status spigot-$SREV.service
Live Map
direkt
- Von außerhalb [Remote Livemap]
- Bei mir zuhause [Lokale Livemap]
mit Webserver (Test)
- Von außerhalb [Remote Livemap]
- Bei mir zuhause [Lokale Livemap]
Hilfe
Plugins
Infos
Hi,
hier werd ich Infos zum Server reinschreiben, wenn ich welche habe.
Bis dahin: verwende /help :)