Mineuniverse
Log in Register
Plugins

WebChatLog

Log chat to webserver.
by _ForgeUser10246434
Download Claim this project
733 downloads
0 likes
Updated Jun 30, 2026
0 hypes
Admin Tools Chat Related Informational Website Administration

Sends chat messages to a {administrator defined URL.}
for every {administrator defined value} chat messages.

sends data in POST,

sends remaining chat messages on plugin stop.

administrator must have server side script to catch the chat messages.

 

 

To install:

Add ChatLog.jar to plugins folder.

restart the server.

This will create a config file, you can edit this config file in Notepad ++ in order to change the URL and frequency between sending the messages to the webserver.

 

Potential easy web interface may come soon.

Simple log data to file:

<?php 
 $link=mysqli_connect("localhost", "root", "root", "chatmessages");
if (mysqli_connect_error($link)) {
print 'Connect Error: ' . mysqli_connect_error($link);
}
if (isset($_POST['jsonArry'])){
$myfile = fopen("logs.txt", "a") or die("Unable to open file!");
$jsonData = json_decode($_POST['jsonArry'], true);
fwrite($myfile, "\n\n\n". print_r($jsonData ,true));//log the json
foreach ($jsonData as $v){
//print $v["datetime"];
print $v["username"];
print " - ";
print $v["message"];
$clean['username']=mysqli_real_escape_string($link, $v['username']);//escape username
$clean['message']=mysqli_real_escape_string($link, $v['message']); //escape message
$date = (new \DateTime($v["datetime"]))->modify('-1 hour');//reduce time by an hour.
$q=mysqli_query($link, "insert into chatmessages (`datetime`, `message`, `username`) VALUES ('{$date}', '{$clean['message']}', '{$clean['username']}')");
if(!$q){
fwrite($myfile, "\n\n\n". mysqli_error($link));//log the error like a boss
}
print mysqli_error($link);//display error.
print "\n";
}
fclose($myfile);
}

 

 

 

 

Credits to mspaint for the amazing logo.

ChatLog-1.1.jar
MC 1.7.2, CB 1.7.9-R0.2, 1.9, CB 1.6.4-R1.0, CB 1.7.2-R0.2, CB 1.6.4-R2.0, 1.11, 1.7.4, 1.8.3, 1.8.1, CB 1.7.2-R0.1, 1.6.4, 1.8, CB 1.7.2-R0.3, CB 1.7.9-R0.1, 1.10
Beta 2017-01-19 Get
WebChatLog
MC 1.6.2, 1.7.2, CB 1.7.9-R0.2, CB 1.6.2-R0.1, 1.9, CB 1.6.2-R1.0, CB 1.6.4-R1.0, CB 1.7.2-R0.2, CB 1.6.4-R2.0, 1.11, 1.7.4, 1.6.1, 1.8.3, 1.8.1, CB 1.7.2-R0.1, 1.6.4, 1.8
Alpha 2016-12-23 Get

More from _ForgeUser10246434

PJC PlayerJoinCommand
2,943

You Might Also Like

AdBolt Advertising Network
Make money from your Minecraft server by running ads!
9,992
Mineload
Mineload
9,978
BeastTP
BeastTP v1.0 - Teleportation Made Easy! -[Permissions][1317]
9,966
RegionManager
generate regions with just one command!
9,950
TimeKeeper
Keep the Server-Playtime per Day
9,948
SimpleAdmin
simple way to ban/kick unwanted players from your server
9,945