Hello! this feature add:
- An option to restrict player from breaking block for a defined time in seconds when they receive a warn (Disabled by default, turn on in the config.yml)
- New commands:
/ot warns (page) to see the number of warns every players received
/ot warnsp (player) to see the number of warns a player received
Adjustments & Fixes:
- Players with ot.admin permission bypass the ore tracker
- Threshold stopped is now respected and stop spam the admin and suspect mining json file
- Add console message when a player get a warn to keep a trace in the console
- The Suspect Mining file count the warns, each warn is added but the warns count increased like this:
Code (Text):
{
"player": "Yanisssch",
"date": "2024-03-03 15:43:44",
"warnings": 1
}
{
"player": "Yanisssch",
"date": "2024-03-03 15:45:19",
"warnings": 2
}
{
"player": "Yanisssch",
"date": "2024-03-03 15:47:06",
"warnings": 3
}
- Some code cleaning and minor fixes
You have to delete the config.yml or add this in the config.yml:
Code (Text):
# Restrict the player from mining a block for a defined time in seconds
MineRestrictEnable: false #Default Disabled (false)
blockRestrictionDuration: 300