SiriLog
SiriLog is a system event log really simple and easy for administrators who need to record everything that happens, with MySQL support!
I'm trying to develop this plugin with Mods like IndustrialCraft, BuildCraft or RedPower in mind, so this plugin maybe will not record all the events in this mods, but at least will record breaking/placing mod blocks and will not break like happens with other plugins, as well you can use the custom chests and custom events options for solve some problems with mod events
But... what exactly does SiriLog?
SiriLog records events on your server and save them in a file called "sirilog.log" in "plugins/SiriLog" or into a MySQL database with the time and date it was recorded, the coordinates and world of the event, the user that caused it and the affected block type.
Features
SiriLog can log:
- Block placing/breaking
- Door/Lever/Button Interactions
- Chest opennings
- Explosions (TNT, Creepers...)
- Custom chests!
- Custom interactions!
Wait wait... Custom chests and interactions?
Yeah!, this is for servers with mods like IndustrialCraft, BuildCraft, RedPower, etc. where exists some chests, levers, buttons and doors that Bukkit some times cant detect like chests or interactions.
Here is where Custom chests and interactions does his work, if a chest or an interaction cant be detected by SiriLog, put them in line, select all of them with the Wand tool, and write: "/sl newchest" for chests or "/sl newinteraction" for interactions, and it will start to record this events!.
Log Examples
Block Placing
[2012/11/25 10:32:44] User put COBBLESTONE X=60 Y=20 Z=60 world
Block breaking
[2012/11/25 10:32:44] Grieffer broke SMOOTHBRICK X=3 Y=4 Z=500 worldnether
Door Interactions
[2012/11/25 10:32:44] User used WOODEN_DOOR X=300 Y=450 Z=12 world
Chest Oppening
[2012/11/25 10:32:44] Thief opened DOUBLE_CHEST X=233 Y=424 Z=125 world
Explosions
[2012/11/25 10:32:44] [ENVIRONMENT] explosionof PRIMED_TNT X=1 Y=2 Z=3 world
Commands
- /sl: Shows the SiriLog's version
- /sl queue: Shows how many changes are on queue for save
- /sl save: Save the actual queue
- /sl reload: Reload configuration without reloading plugin or server
- /sl look: Lists logs happened between two points selected with the Wand tool (Wooden pickaxe) (Only database mode)
- /sl lookid [log's ID]: More details about a log line using his ID. (Only database mode)
- /sl newchest: Save selected zone blocks as custom chests
- /sl newinteraction: Save selected zone blocks as custom interactions
Permissions
- sirilog.info: Allow to use all the commands above.
Configuration
Default config.yml file:
recordings:
showlogsaved: false <--- Show "X logs saved" on save
savelimit: 30 <--- How many logs wait for autosave
mode: file <--- How save the logs, file or database
mysql: <--- MySQL configuration
server: localhost
database: sirilog
user: root
pass: pass
log:
breakblock: true <--- Log block breaking
placeblock: true <--- Log block placing
openchest: true <--- Log chest openning
explosions: true <--- Log explosions
playerinteractions: true <--- Log doors/levers/buttons interactions
custom: <--- Custom chests and interactions.
chests: []
interactions: []
This plugin is quite short
I know, and I'm working on it to make it a good plugin.
Understand me, it's my first plugin :) ...
Sirikon you are the god! now i can track down and ban the people who steal but doesnt leave any trace exept the missing items, ive been struggling with missing items on my server but now your plugin saved my behind. Oh not to mention it does more then you said it would, you dont have to keep the whole entire block Place trackker on just add blocks: under the chest and add place to the interactions and voila no mile long list of someone breking stone :D
EDIT: thou the break event doesnt log for some reason when its on the custom side of things, will be testing it till it does
Could not load 'plugins\SiriLog.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: sirilog/Main : Unsupported major.minor version 51.0
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugins(CraftServer.java:235)
at org.bukkit.craftbukkit.v1_4_6.CraftServer.reload(CraftServer.java:585)
at org.bukkit.Bukkit.reload(Bukkit.java:184)
...
You probably need to update Java version to 7
@doggyroc
Wow thanks! :D, but it's not only my first plugin, it's my first java program aswell :)
For your first plugin, this is amazing. Good way to start off!
@wolfenguard
The latest Tekkit version is based on Bukkit 1.2.5-R5, so if you want Tekkit support it must be compiled in this version ^^
it says its for CB 1.2.5-R5.0 why not the latest?