Staff Monitor
Staff Monitor [v1.4]
Description:
This plugin is a simple plugin that generates individual log files for staff members, or basically anyone you decide to give the monitoring permission. It tracks some of the most used forms of violations that your staff can commit.
OBS: Performance/Impact on Big servers is untested. It's recommended to clean files as soon as possible.
Features:
- Currently logs the following actions:
- When a block is placed (which block, where)
- When a block is destroyed (which block, where)
- When an item is dropped (which item, amount, where)
- When an item is picked up (which item, amount, where)
- When a command is used (which command)
- When a staffer leaves the server
- When a staffer joins the server
- When a staffer interacts with a chest (item, amount, where)
- When a teleport happens (where to)
- When a death happens (where)
- Option to report commands at real time to admins(needs to be activated on the config.yml, plus, you'll need to give the permission staffmonitor.admin to those allowed to receive this information)
- Option to enable a feature where you can store all commands used by a staffer in a separated file that can be accessed ingame using the command /staffmonitor showcommands [player] (needs to be activated on the config.yml file)
PS: "where" includes world name
Setup:
-
Place this plugin on your plugins directory
-
Give the following permission to any group you would like to monitor (staffmonitor.staff)
-
Go to /staffmonitor/logs directory to access all the log files
-
You can change which events are recorded using the config file. (true = record, false don't record)
Permissions:
- staffmonitor.staff -> Whoever has this permission will be monitored
- staffmonitor.admin -> Permission to use /staffmonitor reload and to receive real time reports of commands being used(if this is activated on the config.yml)
Commands:
- /staffmonitor reload -> Reloads your configuration
- /staffmonitor showcommands [player] -> Show the commands last used by one of the watched staffers (Needs to be activated on the config.yml file (enableListCommandsIngame: true))
Compatibility:
- 1.12
- 1.11
- 1.10
- 1.9
- 1.8
- 1.7
- Feel free to test on your version and tell me whether it works or not =)
Version History:
v1.4:
- Fixed some bugs
- Tested and updated to 1.12
v1.3:
- Changed the way files are stored. Now each player has a private folder
- Added an option to log commands used by staffers to those with staffmonitor.admin permission(real-time)
- Added an option to enable the command /staffmonitor showcommands [player] to show a player's last commands (will generate a separated log file
v1.2:
- Added an option on the config file to disable monitoring /login commands (delete your previous config and generate a new one OR add the following line to the config file: MonitorLoginCommands: true)
v1.1:
- Added the /staffmonitor reload command, so you can change your configuration without having to restart
- Tested on 1.7 and 1.8
v1.0:
- Plugin release
To-Do list:
-
Add Information about who received a dropped item
Add your Suggestions!
If you enjoyed this plugin and you would like to support me in the development of StaffMonitor, I would greatly appreciate your donation!
Donate!
Unfortunately -- a bug was found.
When a player tries to break a block in a privated region (by WorldGuard) - block remains as it should be in a privated region, but the plugin logs that block was destroyed:
[18-10-2018 01:27:22] Destroyed the block: GLOWSTONE [-619, 62, 758] at the world: 'world'
[18-10-2018 01:27:22] Destroyed the block: GLOWSTONE [-619, 62, 758] at the world: 'world'
[18-10-2018 01:27:22] Destroyed the block: GLOWSTONE [-619, 62, 758] at the world: 'world'
[18-10-2018 01:27:23] Destroyed the block: GLOWSTONE [-619, 62, 758] at the world: 'world'
[18-10-2018 01:27:23] Destroyed the block: GLOWSTONE [-619, 62, 758] at the world: 'world'
[18-10-2018 01:27:39] Destroyed the block: GLOWSTONE [-619, 62, 758] at the world: 'world'
[18-10-2018 01:27:50] Destroyed the block: STONE [-621, 62, 760] at the world: 'world'
[18-10-2018 01:27:51] Destroyed the block: STONE [-621, 62, 761] at the world: 'world'
[18-10-2018 01:27:52] Destroyed the block: STONE [-621, 62, 761] at the world: 'world'
[18-10-2018 01:27:53] Destroyed the block: STONE [-621, 62, 761] at the world: 'world'
[18-10-2018 01:27:53] Destroyed the block: STONE [-622, 62, 761] at the world: 'world'
But block wasn't destroyed!
Hello! It's a most cool plugin I evere need! Thank you very much!
The one thing remains to do: to provide logs get rotate.
For example, once a month an old folder with logs could be ZIP-archived and renamed as logs-october, and new logs folder could be created.
Otherwise the disk is full.
@LOOHP
@MrAshTonka
Updated it! You'll need to add the following lines to the config file:
ReportCommandsToIngameAdmins: true -> To enable @LOOHP suggestion (and give the staffmonitor.admin permission to those allowed to receive the reports)
enableListCommandsIngame: true -> To enable @MrAshTonka suggestion (/staffmonitor showcommands [name] -> need staffmonitor.admin permission)
@MrAshTonka
So, it would basically read from the player's log file, divided by pages. Thanks for the idea, I'll add that on the next update(this night)
@LOOHP
Great Idea! I'll be posting an update this night adding this feature
What about adding in game commands to display commands from a user in the group or all commands a group has used.
Display them in 5 to 10 commands at a time before going to another page.
I also like LOOHP idea
Added this
Broadcast Moderator used command to online Admins live.