Difference between revisions of "Minecraft"

From Server Knowledge Base
Jump to navigationJump to search
Line 224: Line 224:


/mv tp them worldname
/mv tp them worldname
== Security ==
'''Check when a player was last online:'''
/seen playername
'''Log everything:'''
Install Hawkeye.


== See region information ==
== See region information ==

Revision as of 21:11, 1 April 2013

Currently the server is running 1.4.6-R0.4 Dev for our Minecraft server. We have now updated the plugins to be compatible with 1.4.6

Load Minecraft:

/usr/bin/java -Djline.terminal=jline.UnsupportedTerminal -client -Xmx7132M -jar craftbukkit.jar nogui -d yyyy-MM-dd HH:mm:ss -nojline

Load McMyAdmin:

screen -S minecraft /home/user/MCMA2_Linux_x86_64

or

cd /home/user
screen -S minecraft ./MCMA2_Linux_x86_64

If you want to connect from elsewhere to view the above output/console load the screen session:

ssh user@localhost -pXXXX
screen -ls
screen -xr minecraft

Using CTRL + D will quit screen and close any processes running within it. To exit safely do:

CTRL + A, let go, then press D on it's own.

When downloading a backup from McMyAdmin, it comes in the mcb format. Change it to .zip and you can then unzip it into a folder and restore to the server.

Connection reset [Metrics]

Set opt-out to true in plugins/PluginMetrics/config.yml

This by default is false.

Configuration

Lava

Allowing lava seems to be easiest by creating a group that can do it and then doing:

# Allow lava buckets
[lavabucket]
allow
ignore-groups=Everyone
on-use=notify,log

The below method seems to fail

ignore-perms=worldguard.lavabucket.exempt
ignore-groups=admins,mods,Lava
on-use=deny,tell,notify,log

Current errors

None

Current issues

The /sethome command successfully sets a players home point, but sleeping in their bed does not. - To investigate
On death, players spawn back at original spawn instead of their home. - To investigate

Enjin

  • domain.co.uk//admin/games/minecraft-plugin/gid/6207-0
  • Click Vault
  • If using Unix download the Vault.jar by doing wget http://dev.bukkit.org/media/files/655/849/Vault.jar
  • Download the Enjin plugin
  • Upload it via FTP to your server and it's Minecraft plugins directory
  • Click Add Server
  • Note down the enjinkey

Essentials

Command reference

Find players home:

/home playername:home
/home <user>:<name>

Broken:

/home user:

Respawn at home instead of spawn

Change this:

  1. When users die, should they respawn at their first home or bed, instead of the spawnpoint?

respawn-at-home: false

to

respawn-at-home: true

Set players home

WIP

Teleport player to you

/tpohere playername

Teleport to coordinates

/tppos x y z

Teleport to player

As OP, /tpo playername

As player, /tpa playername

Fixed errors

Outdated version, install up-to-date version: http://dev.bukkit.org/server-mods/nocheatplus/

[INFO] [NoCheatPlus] Enabling NoCheatPlus v3.6.1
[SEVERE] Error occurred while enabling NoCheatPlus v3.6.1 (Is it up to date?)
Error  : Minecraft server could not be started
java.lang.VerifyError: (class: fr/neatmonster/nocheatplus/checks/chat/ChatListener, method: commandPreprocess signature:(Lorg/bukkit/event/player/PlayerCommandPreprocessEvent;)V) Incompatible argument to function
Error  : An incompatible, damaged or outdated addon is preventing the server from starting.
Error  : Java Error: java.lang.VerifyError: (class: fr/neatmonster/nocheatplus/checks/chat/ChatListener, method: commandPreprocess signature: (Lorg/bukkit/event/player/PlayerCommandPreprocessEvent;)V) Incompatible argument to function

Give items

http://www.minecraftwiki.net/wiki/Data_values

/give [playername] [data-value] [amount]

Load MCMyAdmin and Minecraft on server start

ssh -p port user@localhost
crontab -e

Press insert and add:

@reboot screen -dmS minecraft /home/mc/MCMA2_Linux_x86_64

Then do:

:wq

You can then if you wish do:

exit
touch /etc/init.d/minecraftd ; chown user:user /etc/init.d/minecraftd
vim /etc/init.d/minecraftd

Lock chests

Use Lockette. To snoop in chest and to do this without message, edit this file:

/home/user/Minecraft/plugins/Lockette/config.yml

And edit the following:

allow-admin-snoop: true
broadcast-snoop-target: ''

Kill all MCMA processes

ps aux|grep MC|grep x86|awk {'print $2'}

Results of the above command.

for a in `!!`
for a in `ps aux|grep MC|grep x86|awk {'print $2'}`
> do
> kill -9 $a
> done
ps aux|grep MC|grep x86|awk {'print $2'}

Migrate from one *nix server to another

scp / rsync the data in the Minecraft directory across. Then do:

apt-get install unzip
apt-get install openjdk-7-jre openjdk-7-jdk
cd /usr/local
wget http://mcmyadmin.com/Downloads/etc.zip
unzip etc.zip

Go to serverIPaddress:8080 in your browser. To login, check the details in McMyAdmin.conf. To change the password you need to stop McMyAdmin:

/quit in console

The file stores the password as MD5, to convert your password use this: http://www.md5hashgenerator.com/index.php

Multiverse

Command Referece

Create new world

/mv create worldname TYPE

Hide world name in chat

In /plugins/Multiverse-Core/config.yml set prefixchat: 'false' to prefixchat: 'true'

Import backup of world

Delete the uid.dat file in the <worldname> folder before importing.

Rename default world

Set world alias and name

Set alias:

/mvm set alias newname oldname

Set world name

It is best to backup and remove the world, change the folder name and re-import it using /mv import foldername WORLDTYPE, then add it to plugins/Multiverse-Core/worlds.yml

Note: Set original world to be zworld. world is an older backup before zzd with several users homes pasted in.

Teleport player to another world

/mv tp them worldname

Security

Check when a player was last online:

/seen playername

Log everything:

Install Hawkeye.

See region information

/region info area

It should output something like:

Region: area, type: shape, Priority: X
Flags: use: ALLOW, mob-spawning: DENY (OR ALLOW)
Bound: (x) (z)

server.properties file

Tools

ASCII SSH Bukkit Menu (via screen)
Init script

Update CraftBukkit

Stop the server, then do:

mv craftbukkit.jar versioncraftbukkit.jar
wget http://dl.bukkit.org/latest-rb/craftbukkit.jar

Or download the development/beta build and do:

mv craftbukkit-dev.jar craftbukkit.jar

Start the server

Log out and back into MCMyAdmin.

World Edit