Chatlogging
Chatlogging - Records chat and commands into simple text documents
Version: 2.2
Chat Logging will record all chat messages (even private chat from things like mcmmo)
It will also record commands typed and stamp this all with Time, Date, and the user who did it
Features:
Records chat into a simple text file
Has a command "/cl" that turns the chat logging on and off, the permissions for this are vanilla MC op only! (Now also has permissions if you desire. Bukkit Permissions only. But you can disable permissions and leave it for MC OP)
Tells the console and anyone with the permissions or vanilla MC OP who turned the logging on or off (Now also has permissions if you desire. Bukkit Permissions only. But you can disable permissions and leave it for MC OP)
Now also supports Bukkit Permissions
Config file auto generates
Permission Nodes
- Toggle logging: chatlogging.toggle
- Notify of toggle: chatlogging.notify
- Log this player: chatlogging.log (Defaults to true)
Config Guide
- onelog: - This is if the log will be split by day, or one LARGE text file with the whole log in it.
- notify:
- op: - If Vanilla MC Op's will be notified of the chat logger being turned on/off
- bukkit: If people with the "chatlogging.notify" permission will be notified of the chat logger being turned on/off
- commands: - If commands are logged
- permissions:
- op: If a Vanilla Op can use the commands
- bukkit: if people with the bukkit perms can use the commands
- playerOnServer: - Logs a player joining, Leaving or being kicked
- logging: 'true' - This is if the plugin is logging or not. Changeable in game but can be adjusted here.
- format: - The format for the log. (Default '{date}: [{world}] {player}: {msg}')
In this "date"[ is replaced with the current System date and time
"world"[ is the world it happened in
"player"[ is the players name
and "msg" is the message
Video:
http://www.youtube.com/embed/zZ_klczEoPE?hl=en&fs=1
Future Plans:
Add permissions and bukkit permissions support
Add permission for the "/cl" command
Add permission for the Toggle message
the config file will, when generating the config file, default everything to true
- Add more commands to change more options from ingame
- Suggest Ideas please...
NOTE: This plugin records server information back to my data base. This is just for statistics like your server Ip, and plugin version.
@mbl111
Does approval normally take over 15 days?
@Royalgamer06
Update incoming, just waiting on approval
New idea:
It would be nice if we could change where the log was saved,
as I like it to be saved in my web-server folder.
It would also be nice if we can choose the time format as I like it in YY-MM-dd HH-mm (date and 24hour format)
BTW, if we choose "one log: true" then it still makes folders with date (they are empty).
And the console is still spamming: "LogDeath false" (annoying)
if LogDeath: false
consol msg spam...
LogDeath false LogDeath: false LogDeath: false . . .
Can this plugin log the in-game chat to individual player logs (with the addition of an ip address)?
Thanks! :-)
- ThisUsernameIsMine
Please add source
@BrvtvsC
yeh would be very handy to have more variable choices to add into the log.
could you add support for splitting the logs by the world they were said in? i have per world chatting in my server as different worlds are different communities in my server
It would be nice if IP and player position were added as variables in the log, these are very helpful for advanced rule enforcement. Thanks.
@FREEMANtsinq Ok, I worked it out. The new config is the Issue I think. I will be releasing a new version soon. It should do the trick
its gone from working showing player names chat, commands etc ....to in the same log file after a server restart.. not working and only doing this:
:(
Works fine THx see msg Console!!
2012-03-09 05:02:21 [INFO] [Chatlogging] Enabling Chatlogging v2.2
2012-03-09 05:02:21 [GRAVE] Wrong method arguments used for event type registered
2012-03-09 05:02:21 [INFO] [Chat Logging] by mbl111 is now enabled!
@mbl111
Hey mbl111,
I appreciate the quick responses to our comments. I don't know about anybody else, but I have had no luck getting this plugin to work properly.
The only error I've been getting now is as follows:
2012-03-08 21:00:17 [INFO] [Chatlogging] Enabling Chatlogging v2.2
2012-03-08 21:00:17 [SEVERE] Wrong method arguments used for event type registered
2012-03-08 21:00:17 [INFO] [Chat Logging] by mbl111 is now enabled!
The log is only registering the event type and the time. Here's an example of what it's logged for me:
{JOIN}08:57 PM
{CHAT}08:57 PM
{QUIT}08:57 PM
{JOIN}08:59 PM
{CHAT}08:59 PM
{QUIT}08:59 PM
Since it's only registering the stuff before the first ":" in the format line of the config.yml I tried removing the first ":". This is what it registered after doing that:
{JOIN}09:04 PM [world] player
{CHAT}09:04 PM [world] player
{CHAT}09:04 PM [world] player
{QUIT}09:04 PM [world] player
So i removed the second ":" on the format line and got:
{JOIN}09:07 PM [world] player joined the server
{CHAT}09:07 PM [world] player blah
{CHAT}09:07 PM [world] player blah blah blah test without both :
{CHAT}09:07 PM [world] player bye
{QUIT}09:07 PM [world] player quit the server
Even though this appears to have fixed problem with this plugin not logging properly, I still get the following error in the console:
2012-03-08 21:09:04 [INFO] [Chatlogging] Enabling Chatlogging v2.2
2012-03-08 21:09:04 [SEVERE] Wrong method arguments used for event type registered
2012-03-08 21:09:04 [INFO] [Chat Logging] by mbl111 is now enabled!
Tests were conducted on craftbukkit server, build 2034 (the beta), with only this plugin running.
Hope this helps!
@Marium0505
@Royalgamer06
@Royalgamer06
@FREEMANtsinq
Right, Fixed in 1.2 (just gotta wait for the file to be approved)
What does this error means?
@FREEMANtsinq
Right, A minor Error. Nothing wrong on your part. I will have a fix out very soon.
I thought this plugin would be useful so I installed it on my test copy of my server. When I first ran it, I got the following errors:
2012-03-08 00:53:18 [INFO] [Chatlogging] Enabling Chatlogging v2.0
2012-03-08 00:53:18 [SEVERE] Wrong method arguments used for event type registered
2012-03-08 00:53:18 [WARNING] [Playerstats] Error while creating config file.
2012-03-08 00:53:18 [WARNING] [Playerstats] File path: [PATH REMOVED]\plugins\ChatLogger\config.yml
2012-03-08 00:53:18 [SEVERE] java.io.IOException The system cannot find the path specified
2012-03-08 00:53:18 [SEVERE] at java.io.WinNTFileSystem.createFileExclusively(Native Method)
2012-03-08 00:53:18 [SEVERE] at java.io.File.createNewFile(Unknown Source)
2012-03-08 00:53:18 [SEVERE] at me.mbl111.chatlogging.Config.load(Config.java:35)
2012-03-08 00:53:18 [SEVERE] at me.mbl111.chatlogging.LoadProperties.<init>(LoadProperties.java:9)
2012-03-08 00:53:18 [SEVERE] at me.mbl111.chatlogging.Chatlogging.onEnable(Chatlogging.java:57)
2012-03-08 00:53:18 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
2012-03-08 00:53:18 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
2012-03-08 00:53:18 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:363)
2012-03-08 00:53:18 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
2012-03-08 00:53:18 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
2012-03-08 00:53:18 [SEVERE] at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374)
2012-03-08 00:53:18 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361)
2012-03-08 00:53:18 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
2012-03-08 00:53:18 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
2012-03-08 00:53:18 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
2012-03-08 00:53:18 [SEVERE] java.io.FileNotFoundException plugins\ChatLogger\config.yml (The system cannot find the path specified)
2012-03-08 00:53:18 [SEVERE] at java.io.FileOutputStream.open(Native Method)
2012-03-08 00:53:18 [SEVERE] at java.io.FileOutputStream.<init>(Unknown Source)
2012-03-08 00:53:18 [SEVERE] at java.io.FileOutputStream.<init>(Unknown Source)
2012-03-08 00:53:18 [SEVERE] at me.mbl111.chatlogging.Config.save(Config.java:73)
2012-03-08 00:53:18 [SEVERE] at me.mbl111.chatlogging.LoadProperties.<init>(LoadProperties.java:25)
2012-03-08 00:53:18 [SEVERE] at me.mbl111.chatlogging.Chatlogging.onEnable(Chatlogging.java:57)
2012-03-08 00:53:18 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
2012-03-08 00:53:18 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
2012-03-08 00:53:18 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:363)
2012-03-08 00:53:18 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
2012-03-08 00:53:18 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
2012-03-08 00:53:18 [SEVERE] at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374)
2012-03-08 00:53:18 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361)
2012-03-08 00:53:18 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
2012-03-08 00:53:18 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
2012-03-08 00:53:18 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
2012-03-08 00:53:18 [WARNING] [Playerstats] Error while updating config file.
2012-03-08 00:53:18 [INFO] [Chat Logging] by mbl111 is now enabled!
I went to the plugin folder. It did not create a "Chatlogger" folder but instead created a "Playerstats" with nothing in it. I created a "Chatlogger" folder and ran it again with the same errors resulting. I manually created a blank config.yml file and then it populated it with the default options but still gave the following error:
2012-03-08 00:55:25 [INFO] [Chatlogging] Enabling Chatlogging v2.0
2012-03-08 00:55:25 [SEVERE] Wrong method arguments used for event type registered
2012-03-08 00:55:25 [INFO] [Chat Logging] by mbl111 is now enabled!
I removed the "{{event}}" from the format section of the config.yml file and it still gives that error. The only thing it is currently logging is the time. Here's what it logged from my tests:
[JOIN]12:59 AM
[CHAT]01:00 AM
[CHAT]01:00 AM
[CHAT]01:00 AM
[CHAT]01:00 AM
[CHAT]01:00 AM
[CHAT]01:01 AM
[QUIT]01:01 AM
01:08 AM
01:08 AM
01:08 AM
01:08 AM
01:08 AM
01:08 AM
01:08 AM
01:08 AM
01:08 AM
Running craftbukkit build 2034 (the beta, MC1.2.3).
Am I doing something wrong?
Do I need the playstats plugin?
Thank you in advance for a reply.
Please update to the new bukkit dev build as fast as possible. :) The plugin is important if i want my server to be public.
@RebornSheep
This is a great idea. I will look into it. Over the next week or so, I have been thinking of redoing this plugin by adding some more features. One feature is a search function. where you type /cl search [MM-DD-YYYY] [param1] <param2> <param3> ... ect and it will generate a file containing any logged line that has one of those search paramiters. You could then impliment this with a simple search using their name as a parameter and BAM a new txt file with the search results
Can you make an explanation of each config option please? I mean it looks pretty simple, but just to be sure.