BlockLogger
#1
This plugin aims to replicate LogBlock or CoreProtect (for bukkit) and make servers safer from griefers.

This is HEAVILY a WIP, in fact only logging works at the moment.

Current Features:
  • Text file block logging.
  • Expandable logging methods.
  • Logging of creation or deletion of blocks. Until the API is a bit better, this is pretty much all I can manage.

TODO:
  • Make rollbacks possible.
  • Get a database block log storage engine.
  • Fix bugs

How to download/use?

There is a git repo for development work here:

https://github.com/bearbin/BlockLogger

Main Zip, use if you want more stability: here.
Dev zip: http://ci.berboe.co.uk:8080/job/BlockLog...Logger.zip

Just dump in your plugins folder and add to your settings.ini (Please, after all the other plugins or it will mess stuff up!)

Note to people who might want to help:

The things that really need work are more logging methods, if somebody could find a reliable MYSQL -> Lua interface it would be wonderful.

If you need help, you can email me @ bearbin_AT_gmailDOTcom or use my skype (alexanderharkness).
Reply
Thanks given by: NiLSPACE
#2
wow thanks, i was hoping someone would start making a copy of coreprotectBig Grin
is it possible already to see who destroyd or placed a block?
EDIT:
the plugin only stores the new logging after a reload. maybe that is a bug?

and i get an error when i place blocks. there is an error in logger-textfile.lua at line 44 it says
Reply
Thanks given by:
#3
Would an SQLite API help? 'cause I was once pondering about adding it.
MySQL is somewhat difficult to add, since it has different sources for each platform, if at all (RasPi / Android)
Reply
Thanks given by:
#4
Yeah a SQLite API would be great!

STR, mind updating to the latest version from github and telling me the error message you receive?
Reply
Thanks given by:
#5
it still doesn't work. the quality of the picture is bad for some reason but its readable.
   

I have a (sort of) fix. if you change the code from onblockplace.lua to
function OnBlockPlace( Player, X, Y, Z, blockface, status, newBlock )
	_G[LOGFORMAT.."WriteBlockLog"](1, X, Y, Z, Player:GetName(), tostring(newBlock))
	return false
end
it should work exept that it doesn't log what block you placed. so you get this kind of log:
Quote:1356814248,1,275,67,89,STR_Warrior,nil
Reply
Thanks given by:
#6
Hmm, strange. I shall have to look at the api or something. Anyway, I'm writing something to retrieve the logs.

If you can find a fix I'll happily put it in.
Reply
Thanks given by:
#7
i tried allot of things but i can't let it work, sorry Sad
Reply
Thanks given by:
#8
I must be misunderstanding the API, or else it is broken Sad
Reply
Thanks given by:
#9
wil it also be able to log fire?
Reply
Thanks given by:
#10
I don't think it would be able to log fire, there isn't an API for it.

I'll make a list of APIs I need and put them in the plugin discussion area.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)