CoreProtect Web Interface
CoreProtect 2 Web Interface
March 25: Beta released for CoreProtect 2
- Finally updated! The update took such a long time because I have been busy with other projects.
- The interface has been rewritten, so remove all files from the previous version before installing.
About
Web interface for Intellii's CoreProtect plugin.
Search through your CoreProtect history with an easy-to-use interface.
Screenshot
Demo
See the interface in action: Live Demo
Password: guest
Features
- Supports MySQL.
- Search by actions: block place, block break, sign place (sign text), interact, chest use (includes block names and amount stored/taken), chat, command, login/logout.
- Search by player name, world, time, coordinates, block id/name and date.
- Sort and filter results.
- Generates /tp commands to paste into Minecraft (configurable).
- Automatically fetches the list of worlds on the server.
Requirements
The web interface requires:
- MySQL database - flat files are not supported.
- PHP-enabled web host.
- MySQLi for PHP. If you don't have this, you will not receive any results or get an error.
- Sessions enabled for PHP, or else the login function will not work. To check if you have sessions enabled, see here)
Download
Installation
- Extract contents to a web-accessible directory on your web server.
- Edit config-RENAME-ME.php (instructions are included in the file). Rename to config.php when you are done.
- Browse (with your web browser) to index.php to start searching.
Configuration - config-rename-me.php
First, rename config-rename-me.php to config.php.
Important settings to configure in config.php are:
- 'interfacePass' => 'admin',
This is the password to log into the web interface.
- 'host' => 'localhost',
- 'port' => 3306,
- 'user' => 'root',
- 'pass' => '',
- 'database' => 'minecraft',
- 'tablePrefix' => 'co_',
MySQL info - should be the same as in your CoreProtect's config.yml.
Configuration - themes.json
You can edit themes in themes.json. Simply change the hex codes to any color you want. Make sure you include the # before each hex code.
Configuration - /js/main.js
At the top of main.js, you can edit the command that pops up when you click on a result.
Configuration - blocks.txt
I will update the blocks list for each release, so you generally don't need to edit it.
If you have custom blocks, you can add them to blocks.txt. Follow the format of the other entries (id#,name), and make sure there are no empty lines or leading/trailing spaces.
Comments, Questions, Complaints
Post a comment or submit a ticket, I'll try to get back to you as soon as I can.
Is there any chance of making another plugin that does flat files? I am sort of against mySQL because it took forever to log causing massive lag.
I'd like to request CoreProtect web interface logs "Join" information like hawkeye which records Name, IP, date/time. This will help to stop Spoofers. Thanks
Please look at hawkeye to understand if you dont know what I mean
@karatetoes
I've thought about flat file support, but decided against it for a few reasons. One is access issues, where the interface could lock up the data files so that Minecraft could not access it, or vice versa. Another is performance - MySQL is well suited for searching through large amounts of data, while flat files are not.
@Sharkykzn
I'm working on rewriting the whole interface so I can implement some major changes, including adding your own world names. It should be out in a few days.
CoreProtect does not log chat or commands, so you will need a different plugin to store that.
@ablac
@ablac, would appreciate some guidelines to customize the main world names in the interface. (Replace the Overworld with own world name)
@lexplay, will play with these settings as suggested. Would also like the ability to filter other actions, like commands, and chat. Can these be easily added by editing interface and query files? Thanx
Feature Request
Flat-File Support
@liec0dez
The only other thing I can think of is the date. If you have not already done so, try setting the date back a bit and search again.
If you'd like me to look into this further, log into the database with phpmyadmin and show me a few rows of data (also, include the name of the table).
@ablac
I'm planning on rewriting the code sometime, so I'll try to improve MultiVerse support. Deleting entries may also be possible, no promises though.
Wonderful Addon for CoreProtect cept for the MultiVerse Support is really Small...
Should add options in the config to have your worlds permanently there and have there own search tab (with names ECT)
Wasn't hard for me to Manually Edit the pages to add my worlds ;P With Tabs :) But would be a nice improvement to not have to manually edit the code :P
Another really cool feature would be the ability to Delete Entries so CoreProtect doesn't know they ever existed ;)
Please help, if I search in the web inteface, it tells me, nothing found. MySQL Datas are correct, the database exists, and there are a lots of entrys from CoreProtect in the database.
I selected All Actions, Overworld, Include Mobs & Environment. Plugin and Interface are both updatet, craftbukkit version is 1.4.2-R2
@Sharkykzn
Actually you just helped me find a bug. It's supposed to display World 4 (or whatever number the world ID happens to be), but the number part isn't displaying because of an error in the code. I'll fix this for the next release.
However, if you want an actual name for your world (like Minecraftia), you'll have to edit some code. It's pretty straightforward:
Finally, if you want to fix the bug before the next release:
Amazing add-on for a great tool.
Just one question, how does one edit the world names in the interface. Have it working on Multiverse server, as in I get search results across all worlds, but report just shows 'world'?
@Intangir
Thanks, glad you like it.
i love the web interface it is the awesome shit ive ever seen
previously i couldnt figure out any way to track ALL the damage someone has done, but this does it!
@madsod
Some people have gotten CoreProtect to work with Tekkit, though I believe there are some bugs with certain Tekkit blocks.
@Junrall
I think writing ingame commands are straightforward enough as it is - having a script to write commands wouldn't save much time or effort.
Holy BaJeebus! This is totally awesome!
Could you please add some sort of a Copy-n-Paste functionality for rollback commands? Maybe include: Four textboxes for rollback times(Weeks, Days, Hours, Seconds) and two other textboxes for block type and radius.
Thanks!
wish i had this for tekkit :(
@RustyDagger
Google for 1FreeHosting.
I've noticed that the MySQL service they provide sucks, but their free hosting is pretty good for free hosting.
Dam it I don't have a decent web host :(
@darkdave23
Good catch, I'll fix it in the next update.
In Query.php if($row['action'] == 0){ $action = 'Stored '; } else { $action = 'Took ';
Stored and Took should be reversed cause when i place an item in a chest it says I took it out.
@kor_shultz
There is some problem with the start of index.php.Try:
If you still have the problem: