Minecraft

De SME Server Wiki

configuration SME 8.0

installer java

yum install java

installer les fichier Minecraft

mkdir /opt/Minecraft
cd /opt/Minecraft
wget  wget https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar

lancer Minecraft

cd /opt/Minecraft
 			java -Xms1G -Xmx5G -jar minecraft_server.jar nogui 		

ouvrir le port dans le manager

TCP 25565 localhost 25565

Minecraft

lancement automatique

adduser minecraft
 wget https://raw.github.com/marcuswhybrow/minecraft-server-manager/latest/msm.conf -O /etc/msm.conf
vim /etc/msm.conf

modifier /etc/msm.conf : mémoire et nom du server jar

mkdir /opt/msm chown minecraft /opt/msm chmod -R 775 /opt/msm
ram disk storage
mkdir /dev/shm/msm chown minecraft /dev/shm/msm chmod -R 775 /dev/shm/msm

script

wget https://raw.github.com/marcuswhybrow/minecraft-server-manager/latest/init/msm -O /etc/init.d/msm
chmod 755 /etc/init.d/msm
chkconfig --add msm
ln -s /etc/init.d/msm /etc/rc.d/rc7.d/S99msm

editer /etc/init.d/msm pour supprimer l'option --trust-server-names de la ligen avec wget , elle n'est pas disponible sur la version wget de SME (ligne 903)


cron

wget https://raw.github.com/marcuswhybrow/minecraft-server-manager/latest/cron/msm -O /etc/cron.d/msm

auto completion

mkdir /etc/bash_completion.d
wget https://raw.github.com/marcuswhybrow/minecraft-server-manager/latest/bash_completion/msm -O /etc/bash_completion.d/msm
vim ~/.bashrc

ajouter if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi ajouter un lien pour simplifier les tâches

ln -s /etc/init.d/msm /usr/local/bin/msm


créer son groupe

msm jargroup create minecraft https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar

ou pour un serveur craf bukit

msm jargroup create craftbukkit http://dl.bukkit.org/latest-rb/craftbukkit.jar


créer son premier serveur Minecraft

msm server create <server-name>
msm <server-name> jar minecraft


lancer son serveur

msm <server-name> start

sources

http://www.minecraftwiki.net/wiki/Tutorials/Setting_up_a_server#Installing_Java_2


http://marcuswhybrow.net/minecraft-server-manager/docs/installation.html