Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for Last

A plugin for automines with flexible customization for new versions

Report LastMines?

Global Update

Folia

  • Folia support. Supported version range: 1.21 - 26.3.
  • Mine resets run chunk by chunk: each part is executed on the region thread of its own chunk (up to 10,000 blocks or 10 ms per step).
  • All tasks go through the LLib scheduler: timers run on the global scheduler, database work runs asynchronously, actions run on the player's thread, teleports use teleportAsync.
  • Holograms are created and updated on the region thread of their location.

Mining Statistics

  • Counts mined blocks: in total and per material. Increments are accumulated in memory and written to the database in batches (every 5 s by default, asynchronously). On error they are returned to the queue; when the plugin shuts down, a final synchronous write is made.
  • Commands: /lm stats [player] [material], /lm top [material] [page]. Permissions: lastmines.stats, lastmines.stats.others, lastmines.top (stats and top are available without lastmines.admin).
  • Placeholders: %lm_top_name%, %lm_topvalue% (also with a material), %lm_blocks_total%, %lm_blocks%, %lm_rank%, %lm_rank_%. The same values are available as %lastmines_top_…% / %lastmines_stats_…%. They read memory only and never touch the database. An empty top slot shows - and 0.

Database

  • The plugin now supports databases, for fast operation and cross-server use.
  • File sql.yml: Memory, H2, SQLite, MySQL, MariaDB, PostgreSQL (HikariCP pool, drivers are downloaded automatically). The schema version is stored in the database, and indexes were added for the top. On a database shared by several servers, the data is summed.

File syntax:

driver: H2
table_prefix: 'lastmines'

h2:
  name: 'LastMines' # <name>.db

sqlite:
  name: 'LastMines' # <name>.db

mysql:
  host: 'localhost' # IP:PORT - if PORT is not specified, the default 3306 is
  name: 'lastmines'
  user: 'Last'
  pass: 'LastStudio'

mariadb:
  host: 'localhost' # IP:PORT - if PORT is not specified, the default 3306 is
  name: 'lastmines'
  user: 'Last'
  pass: 'LastStudio'

postgresql:
  host: 'localhost' # IP:PORT - if PORT is not specified, the default 5432 is used
  name: 'lastmines'
  user: 'Last'
  pass: 'LastStudio'

# Mining statistics

stats:
  enable: true
  flush_interval: 5s    # how often to send the accumulated data to the datab
  top_refresh: 45s      # how often to refresh the top cache
  top_size: 100         # how many top positions to keep in the cache

Actions

  • All action types come from LLib: message, title, actionbar, sound, console, pive, particle and others.
  • Each line is parsed once when the config is loaded; an error in one line does
  • New entry format [type] [chance:N] value, plus "when", "target" and repeat tags anywhere in the line ([chance:N] must come right after [type]):
  • when: [update], [update:N], and the new [break] and [break:MATERIAL] (when
  • target: [all], [mine], [radius:N], and the new [self] (the player who broke the block; the default for [break])
  • chance: [chance:N]
  • repeat: the new [every:N], which runs any action every N seconds with any tbar] [radius:7] text
  • Substitutions: %player%, %breaker%, %material%, %mine% and PlaceholderAPI.
  • [console], [broadcast] and *_all run once from the console (previously once per player, and not at all when no players were online).
  • The lastmines.edit.commands permission is required to add [console] and [play Added for security.

Modes and the Copy Command

  • ALL_BLOCKS is now a working mode: if there are not enough of the required blomediately and works without a timer.
  • Reset by percentage (reset_percent: N): when ≤ N% of the blocks remain, the mine refills immediately. Works in any mode.
  • /lm copy (permission lastmines.copy): copies all settings of an cate, except the area, teleport point, hologram and statistics. The copy is created stopped and without an area.
  • A mine can exist without an area (no positions); such a mine is not reset.

Fixes

  • A server version such as 26.2.build.7-beta was not recognized (a warning was was skipped).
  • The update checker reported "a new version is available" even when your versior was silently lost.
  • The message "Mine with ID %mine% already exists" showed the literal %mine% inreate).

Information

Published
November 26, 2026
Author
0Downloads

Platforms

Paper
Paper
1.21–26.3

Dependencies

PaperPaper

Dependencies: Paper

Plugins and libraries a server needs for this version to run.

No dependencies

Add anything a server has to install alongside this version.