PlayerLogger
PlayerLogger
Version: 2.9.1
CraftBukkit Build 1.5.1-R0.1 [Not Tested]
Info
Info This plugin lets you store every block place, block break, chat msg, command, enchant, kill, sign text etc. So, if you need proof of something just look them up! You can turn on and off what you actually want or don't want to log, in the main configuration file! The main developer is Kuuichi. I am just continuing and adding stuff. I am obligated to continue this plugin. The forum is http://forums.bukkit.org/threads/admn-playerlogger-v0-7-logs-of-your-players-1-2-5-r0-1.58959/ and has been accepted.
Video
Great video made by Brandon Hopkins
Features:
- Chat Logging
- IP Logging ( Implemented by Mcluke300 )
- Join Logging
- Quit Logging ( Implemented by Mcluke300 )
- Command Logging
- Death Logging
- Console Logging ( Implemented by Mcluke300 )
- Blacklist Block Logging ( Implemented by Mcluke300 )
- Sign Text Logging ( Implemented by Mcluke300 )
- Pvp Logging ( Implemented by Mcluke300 )
- Enchantment Loggin ( Implemented by Mcluke300 )
- Commands not to log ( Implemented by Mcluke300 )
- Bucket Logging ( Implemented by Mcluke300 )
- Metrics
- MySQL support
Log Example
[World One]McLuke300 joined: 192.168.1.101 (-27 64 220) (06-26-2012 20:03:48)
[World One]McLuke300 Killed TestyWestie (-18 64 220) (06-26-2012 19:37:30)
[World One]McLuke300 said: Example chat (-21 64 220) (06-26-2012 20:02:06)
[World One]McLuke300 command: /home (-20 64 219) (06-26-2012 20:02:08)
[World One]McLuke300 Sign: [McLukes][Home][][] (-22 64 222) (06-26-2012 20:02:22)
[World One]McLuke300 command: /give McLuke300 46 1 (-22 64 223) (06-26-2012 20:02:26)
[World One]McLuke300 Placed: TNT (-26 64 218) (06-26-2012 20:02:28)
[World One]McLuke300 Placed: TNT (-26 64 219) (06-26-2012 20:02:29)
[World One]McLuke300 command: /god (-32 64 212) (06-26-2012 20:02:36)
[World One]McLuke300 command: /suicide (-26 64 216) (06-26-2012 20:02:39)
[World One]McLuke300 Died. (-26 64 216) (06-26-2012 20:02:40)
[World One]06-26-2012 20:03:21 [McLuke300]ItemStack{STONE_SWORD x 1} {Enchantment[16, DAMAGE_ALL]=1} Xp Cost:3
[World One]McLuke300 Emptied Bucket of Water (-26 63 224) (06-26-2012 20:08:53)
[World One]McLuke300 Emptied Bucket of Lava (-26 63 221) (06-26-2012 20:08:54)
[World One]McLuke300 quit: 06-26-2012 20:03:45)
[Console]kick McLuke300 05-27 03:46:42
Config
File: LogToFiles: true //False if you want to use just mysql Log: //Log Joins PlayerJoins: true // Log Player quitting PlayerQuit: true //Log Chat PlayerChat: true //Log all Player commands PlayerCommands: true //Log Player deaths PlayerDeaths: true //Log enchantments PlayerEnchants: true //Log Pvp Pvp: true //Log Buckets Placed PlayerBucketPlace: true //Log Console commands ConsoleCommands: true //Log Player sign text PlayerSignText: true //A reload of server is required for this to take effect http://docs.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html DateFormat: MM-dd-yyy HH:mm:ss //If this is true it will make the folder Playerlogger/Staff and all players with the Playerlogger.staff permission will be in there not Users SeparateFolderforStaff: true //False by default- Useful for offline servers where players can change capitalization in name and have a different file. All file names are in lowercase PlayerNamestoLowerCase: false //When true it will only log the players with the playerlogger.staff permissions LogOnlyStaff: false BlackList: LogBlackListedBlocks: true //Enables logging of blacklisted blocks Blocks: - '7' //Bedrock Block id - '46' - '57' - '*' //This will log all block place and breaks Commands: BlackListCommands: true //Enables Command Blacklisting (eg.wont log) BlackListCommandsForMySQL: true If this is true and blacklistcommands false it will blacklist commands for mysql and not files. CommandsToBlock: - /login //Wont log /login - /changepassword - /register MySQL: //More Information Below Enabled: true Server: 127.0.0.1:3306 Database: minecraft User: root Password: '0000'
MySQL
For a full guide on how to use MySQL with playerlogger look at the page for it. http://dev.bukkit.org/server-mods/playerlogger/pages/mys-ql/
I tested it out, it seems that it doesn't log players commands, I have everything set to true except blacklistcommands.
but no error in console.
Here is my config file.
Also, is it possible to make the .txt file be moved into a dated folder then after a set amount of time be archived into a zip file?
@Liger_XT5
Was that player already in the server? As I think it only creates the file on the join but of course if join is disabled it won't ever create the file I'll update it soon sorry.
I could use the black list to filter out the towny commands, but I'd rather just keep it all looking the same.
In the server log, towny has it's own format of stating who used what commands. I'd rather just keep a same-to-all command references shown in the log. Bit of OCD on this when looking for issues.
I recently added it, getting a bug when ever a player does anything related.
Question though. Does it save it all to a file, or directly to the server.log file?
@Liger_XT5
By fielder do you mean commands wise? As I added blacklist commands so it won't log at all the commands listed could this be what you were looking for? Could you explain the filter abit more please as I'm not 100% sure what you mean. Do you mean to filter chat? Or something. You could test it and If the blacklist commands isn't what you were looking for you could reply. Thanks
-McLuke300
I've been using PLG Log Command, created by one of the CB team a long time ago.
Seeing this really helps assures me that if his plugin were to die, there are other plugins around to show similar features are useful.
With these extra features, it would be very helpful. I plan to move to this plugin now and test it out.
One of the features I like is world and coordinate data.
Not sure how you guys would go about this.
I use towny, and it has it's own form of posting towny commands, which I use obushutthehellup to filter them out to keep the rest of the records looking clean, while keeping the log shorter as well. (Use bannalogarchive to archive after a certain size.)
Are you guys planning a in the future a type of filter?
@McLuke300
Ok updated
@vk222u
I will add full block logging now
@vk222u
Whoops I did static final String DATE_FORMAT_NOW = "MM-dd-YYYY HH:mm:ss";
Instead of static final String DATE_FORMAT_NOW = "MM-dd-yyyy HH:mm:ss";
@Hans6666
I will be rolling out fix very soon, just going to check for more errors and possible new features.
im getting the same error
@McLuke300
Yes,
I am running CraftBukkit Build 1.2.5-R4.0
The Error I get,
-Vk
@vk222u
It does work, did you get any errors?
@McLuke300
I was looking for full block logging not black list, could you make another option to use the blacklist or log every log,
Also I tested it, doesn't seem to want to log anything.
@McLuke300, thanks a bunch.
another issue that just bit me: non-ascii characters (think german umlauts) get converted to question marks in the log. is there anything that could go wrong if they were just output as-is, utf8 encoded?
@vk222u
Logging of blocks readded
@fd8wfod
Added in update just waiting till its approed
could you add the year to the date/time-stamp at the end of the log lines? it's somewhat incomplete without one. (that even affects the log example given here.)
@McLuke300
I like the idea behind you saying which players you want to have the logs log, you could add that as a feature in this plugin.
And thank for re adding the block logging
@ragnazar
I have made a plugin that is exactly like this plugin called StaffLogger except it has a config where you choose players to be logged with a config like this;
It only makes files for names listed in config is this what you are looking for? As i could release it.
@vk222u
I disabled logging of blocks and placing because i thought it wasn't needed But in next update i will add it again and add bannedblocks file if possible.
Hello, I seem to be having a problem, I have everything but log player death to true and it seems that the plugin does not wish to log when I place or destroy a block.
Bukkit RB 1.2.4 R4.0
Edit
I watched the youtube video and on the config log, it has the ones you need
LogBlockPlace=true
LogBlockBreak=true
LogBannedBlocks=true
Are not automatically added to the config.
I did add them however and the plugin did not log the block destory or block place.