This plugin sends an email via SMTP to you when a message in the serverlog matches one of the configurable patterns. Those patterns can be as simple as
Exception
or more complicated regular expressions like
logged in with entity id \d+ at \(\[.+\] [\d,.\-\s]+\)
Most of the time you are just fine with simple expressions. Advanced regular expressions are only necessary for detecting highly variable messages.
The whole config is modifiable through commands. smtp.gmail.com on port 465 with ssl enabled works great.
enable: true mail: host: smtp.domain.tld port: 465 ssl: true user: user pass: password from: Bukkit Server <[email protected]> subject: Bukkit Server to: - [email protected] - [email protected] rules: op: level: INFO pattern: '.{1,16}: Opped .{1,16}' overload: level: WARNING pattern: Can't keep up!
Every command uses full tab completion for known parameters even when read from config.
| Command | Description | Arguments | |
|---|---|---|---|
/monitor <on|off> | Enable/disable sending mails | - | |
| /monitor config add <email> | Add recipient | [email protected] | |
| /monitor config check | Send a test email | - | |
| /monitor config list | List all current recipients | - | |
| /monitor config reload | Reload config if file changed manually | - | |
| /monitor config remove <email> | Remove recipient | [email protected] | |
| /monitor config set <setting> <value> | Change config value | from AmShaegar <[email protected]> | |
| /monitor rules list | List all active detection rules | - | |
| /monitor rules add <name> <level> <pattern> | Add a rule. Level: ALL, INFO, WARNING, SEVERE etc. | exception ALL exception | |
| /monitor rules remove <name> | Remove specified rule. | exception |
In order to determine some statistics about popularity of versions and the plugin itself I am using the Metrics plugin. If you do not want your server to be tracked, please turn Metrics off on your server.
From Hidendra: "As a server owner, you are free to question the service, welcome it, or deny it. All plugins that support Metrics use the same opt-out and as such you may opt out of further data at any time. You may ask myself any question and I will do my best to answer it - I am as open as possible with Plugin Metrics / MCStats and hope this will help you understand what exactly it is.
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true. If this folder does not exist, you do not have any metrics-enabled plugins installed :)"