This plugin was created to limit as much as possible the use of cheats or abuse on block mining. Using cheats like Xray or others can break an entire economy on a Minecraft server. Obviously it is impossible to completely stop the cheat but this plugin which is a tool to limit as much as possible and discourage players practicing this by keeping track of the mining of certain blocks and to notify the staff directly via chat or files allowing you to keep track
Features:
- Keep track of the blocks (chosen by you) mined by each player to see if they are mining excessively which can prove that these players are Xraying or Cheating in some way
- A file called ore_data.json contains the blocks mined by each player during a specific time which can be accessed using the command /ot orestats (player) or directly inside the file
- The ore_data file cleans itself from a time determined by you (configurable in the config.yml) But a backup file is made in the ore_data_backup folder

- You can choose which blocks you want to track, change the interval between each cleaning of the ore_data file and at what interval to save the ore_data file
- When a player is mining too much blocks that specified in the tracked blocks, players with the ot.admin permission will be advert (how many blocks in total and time configurable in the config.json)
- When a player is mining too much blocks, he will get a Warn which is stored in the suspect-mining.json, warsn can be reset for a player with the /ot resetwarn (player)
- You can 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)
Commands:
- /ot = info command
All commands above need ot.admin permission:
- /ot setperiodicsaveinterval (ticks) = Set the interval for periodic saving of ore data in ticks
- /ot setresetinterval (ticks) = Set the interval for resetting ore data in ticks
- /ot orestats (player) = View ore statistics and warns for a player
- /ot resetwarn (players) = Reset warns for a player
- /ot warns (page) to see the number of warns every players received
- /ot warnsp (player) to see the number of warns a player received
- /ot thresholdblocks (blocks number) Set the number of max mined blocks that specified in the tracked blocks
- /ot thresholdtime (minutes) Set the threshold time for the tracked blocks
- /ot minerestrict (true / false ) Disable or Enable the mining restriction if the player min too much tracked blocks in the specified threshold time
- /ot minerestrictduration (seconds) Set the mining restriction time
- /ot reload = reload the plugin
Config:
Code (Text):
# ------------------------------------
#
# OreTracker Plugin v1.0.4
# /!/ WORK ONLY ON 1.20.1 & + /!/
#
#
# Config File
#
# ------------------------------------
# Specify the reset interval in ticks (default: 1729200, corresponds to resetting every day - for example 72000, corresponds to resetting every hour)
resetIntervalTicks: 1729200
# Specify the periodic save interval in ticks (default: 6000, corresponds to saving every 5 minutes)
periodicSaveIntervalTicks: 6000
# Specify the blocks to be tracked by the plugin
trackedBlocks:
- DIAMOND_ORE
- GOLD_ORE
- IRON_ORE
- COAL_ORE
# Add more block types as needed
# When a player is mining too much blocks that specified in the tracked blocks, players with the ot.admin permission will be advert
advertBlock:
thresholdBlocks: 75 # How many block in total
thresholdTimeMinutes: 5 # In the specified time
# Restrict the player from mining a block for a defined time in seconds
MineRestrictEnable: false #Default Disabled (false)
blockRestrictionDuration: 300
# ------------------------------------
//You can disable Metrics / Statistics to get information about server (numbers of player, server using the plugin...) [Enabled my default]
Stats-Metrics: true
# ------------------------------------
Permissions:
The main and only permission is
ot.admin
Compatibility:
- Compatible with SpigotMC versions from 1.20.1 and up
------------------------------------------------------------------------------
Note: This plugin is in first releases, more feature will be planned. Also some errors or bugs can occure, the code is not perfect. If you have any suggestion or bugs, you can PM me on Spigot or Discord: yanisssch_sori
------------------------------------------------------------------------------