Catching griefers

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

Catching griefers

by Menche » Mon Dec 05, 2011 00:11

Griefers can be hard to catch, because they usually do their thing when nobody else is online, and the server doesn't log what players do. The server does print out what blocks are broken and by who. I've been trying to figure out a good way to save this information to catch griefers.

stderr output (which contains information about broken blocks) can be saved to a file by launching minetest like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest 2> log.txt

The output seems to be written instantly. It saves ALL stderr output, including placing blocks and mob spawns. Would this make the file to big?
If that causes too much output, lines about someone digging can be pulled out by launching like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest 2>&1 | grep digs >> log.txt

The output seems to be only written completely when minetest is closed. Also, could this use up the computer's memory if used for too long?

Whichever way, the file can be searched like so:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
cat log.txt | grep 'digs (coords)'

where "coords" is the coordinates of a block that was removed from a griefed building.

Sorry if these commands sound stupid, I don't know much about bash and came up with this in 10 minutes. Would something like this work on a server without making an insanely huge log file?
Last edited by Menche on Mon Dec 05, 2011 05:52, edited 1 time in total.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

bwog
Member
 
Posts: 283
Joined: Wed Nov 30, 2011 14:09

by bwog » Mon Dec 05, 2011 00:38

I know that someone made block ownership for Minetest, so if that was added and changed so that when someone places a block, they 'own' it and anybody who removes it, besides the person who placed it, would create a log message, and maybe just that could be saved to a file.
 

bcmpinc
Member
 
Posts: 30
Joined: Fri Jun 17, 2011 09:10

by bcmpinc » Mon Dec 05, 2011 12:41

Menche wrote:The output seems to be only written completely when minetest is closed. Also, could this use up the computer's memory if used for too long?


There usually is some kind of buffer between the processes (I believe they're about 4kb). So the output in the logfile can lack the latest 8kb (there are 2 buffers). However, it won't use up all your computers memory.

Using these logs is quite a good idea to catch griefers. If the logging is enhanced a bit, it can even be used to revert the grieving of a given player. You just revert the actions in reverse order.
 


Return to Minetest General

Who is online

Users browsing this forum: Bing [Bot] and 8 guests