▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
MaxClear

MaxClear

Optimize your server and enjoy constant improvements for unparalleled performance

Оцените первым
2.4K
3

WIKI: https://zkaleejoo.github.io/maxking-docs/

MaxClear

MaxClear is a lightweight Minecraft server cleanup plugin focused on reducing entity-related lag while keeping important entities and player-owned items safe. It supports scheduled clears, manual admin clears, per-chunk anti-farm limits, configurable entity filters, update notifications, bStats metrics, and fully customizable messages.

Features

  • Scheduled automatic cleanup with configurable interval.
  • Optional warning broadcast before each automatic clear.
  • Manual cleanup command for administrators.
  • Entity target list that controls exactly which entity types can be removed.
  • Entity exclusion list that protects important entities from cleanup and chunk-limit checks.
  • Protection for dropped items with custom display names.
  • Spawn-radius protection to keep entities near each world's spawn safe.
  • World filter support, with global cleanup when no worlds are listed.
  • Per-chunk entity limit to reduce excessive mob farm buildup.
  • Configurable prefix, messages, and color-code support using & formatting.
  • Update checks on startup and every 5 hours when enabled.
  • Join-time update notifications for administrators.
  • Optional anonymous bStats metrics.
  • Runtime reload command that refreshes config, scheduled tasks, update checks, and metrics state.
  • Bukkit-style command registration with /maxclear and /mc.

Requirements

  • Java 21 or newer.
  • A modern Minecraft server compatible with Bukkit/Paper APIs.
  • Plugin metadata targets api-version: 1.21.

Paper is recommended for modern production servers. Spigot-compatible servers should only be used if they provide the APIs required by your server version.

REMEMBER TO CHECK THE WIKI TO STAY UP-TO-DATE ON PERMISSIONS AND COMMANDS

Commands

CommandAliasPermissionSenderDescription
/maxclear/mcmaxclear.admin for playersPlayer / ConsoleShows the command help.
/maxclear reload/mc reloadmaxclear.admin for playersPlayer / ConsoleReloads the configuration and refreshes runtime tasks, update checks, and metrics state.
/maxclear clear/mc clearmaxclear.admin for playersPlayer / ConsoleRuns a manual entity cleanup immediately.
/maxclear get author/mc get authormaxclear.admin for playersPlayer / ConsoleShows the plugin author.
/maxclear get version/mc get versionmaxclear.admin for playersPlayer / ConsoleShows the running plugin version.

Players without maxclear.admin cannot use the command or receive tab completions. Console execution is allowed for the registered subcommands.

Permissions

PermissionDefaultDescription
maxclear.adminopAllows players to use MaxClear commands, receive command tab completions, and receive update notifications when a new version is available.

How Cleanup Works

MaxClear only removes entities that pass all configured checks:

  1. The entity must be in entities.types.
  2. The entity must not be in entities.exclude.
  3. If entities.settings.ignore-named-items is enabled, dropped items with a custom display name are protected.
  4. If entities.settings.min-distance-from-spawn is greater than 0, entities inside that radius from the world's spawn are protected.
  5. If entities.settings.worlds is not empty, only listed worlds are processed.

Automatic clears use the completed message list. Manual clears use the manual-clear message and include the command sender name.

Anti-Farm Chunk Limit

When chunk-limit.enabled is enabled, MaxClear listens for creature spawns and limits the number of non-player, non-excluded entities in the target chunk.

  • chunk-limit.max controls the maximum allowed entity count per chunk.
  • Entities in entities.exclude are ignored by the chunk-limit count.
  • Player entities are always ignored by the chunk-limit count.
  • Custom spawn reasons are ignored by the limiter.

This system helps reduce extreme entity buildup without blocking excluded entities such as villagers, armor stands, minecarts, boats, or other protected types.

Configuration

The default configuration is stored in config.yml.

General

PathTypeDefaultDescription
general.prefixStringConfigured in config.ymlPrefix used before plugin messages.
general.update-checkBooleantrueEnables startup and scheduled update checks.
general.bstatsBooleantrueEnables anonymous bStats metrics.

Automatic Clear

PathTypeDefaultDescription
auto-clear.enabledBooleantrueEnables scheduled automatic cleanup.
auto-clear.intervalInteger300Seconds between automatic cleanup runs.

Warning Messages

PathTypeDefaultDescription
messages.warning.enabledBooleantrueEnables a warning broadcast before automatic cleanup.
messages.warning.seconds-beforeInteger10Seconds before the clear when the warning is sent. Must be lower than auto-clear.interval.
messages.warning.messageStringConfigurableWarning message. Supports {time}.

Cleanup Messages

PathTypeDescription
messages.completed.messageString listBroadcast after an automatic clear. Supports {count}.
messages.manual-clear.messageStringBroadcast after a manual clear. Supports {player} and {count}.
messages.no-permissionStringSent to players without permission.
messages.plugin-reloadStringSent after a successful reload.
messages.subcommand-invalidStringSent when an invalid subcommand argument is used.
messages.subcommand-specifiedStringSent when a required subcommand argument is missing.

Update Messages

PathTypeDescription
messages.update-availableStringAdmin join notification line. Supports {version} for the latest version.
messages.update-currentStringAdmin join notification line. Supports {version} for the current version.
messages.update-downloadStringAdmin join notification line shown before the download URL.

Update notifications link to:

/plugins/maxclear

Entity Removal

PathTypeDefault Behavior
entities.typesString listEntity types that MaxClear is allowed to remove.
entities.excludeString listEntity types that are protected from cleanup and ignored by chunk-limit counting.
entities.settings.ignore-named-itemsBooleanProtects dropped items with a custom display name.
entities.settings.min-distance-from-spawnIntegerProtects entities inside this radius from each world's spawn. 0 disables the radius check.
entities.settings.worldsString listLimits cleanup to listed worlds. Empty list means all worlds.

Default removable entity types:

entities:
  types:
    - ITEM
    - ARROW
    - EXPERIENCE_ORB
    - TNT
    - FIREWORK_ROCKET
    - TRIDENT
    - SNOWBALL
    - EGG
    - ENDER_PEARL

Default protected entity types include players, villagers, item frames, armor stands, paintings, minecarts, boats, chest boats, and minecart variants.

Entity Name Aliases

MaxClear supports aliases for compatibility with newer and older entity names:

AliasResolves To
BOATAll regular boat variants, including oak, spruce, birch, jungle, acacia, dark oak, mangrove, cherry, and pale oak boats.
CHEST_BOATAll chest boat variants, including oak, spruce, birch, jungle, acacia, dark oak, mangrove, cherry, and pale oak chest boats.
MINECART_CHESTCHEST_MINECART
MINECART_FURNACEFURNACE_MINECART
MINECART_HOPPERHOPPER_MINECART
MINECART_TNTTNT_MINECART
MINECART_MOB_SPAWNERSPAWNER_MINECART
MINECART_COMMANDCOMMAND_BLOCK_MINECART

Entity names are normalized to uppercase when loaded from the configuration.

Placeholders

PlaceholderUsed InDescription
{time}messages.warning.messageSeconds remaining before the automatic clear.
{count}messages.completed.message, messages.manual-clear.messageNumber of entities removed.
{player}messages.manual-clear.messageSender name for a manual clear.
{version}Update messagesLatest or current plugin version, depending on the message.

Notes for Server Owners

  • Keep entities.exclude conservative if your server uses display entities, NPCs, custom mobs, or plugin-managed entities.
  • Use entities.settings.worlds when you only want cleanup in specific worlds.
  • Set entities.settings.min-distance-from-spawn above 0 if your spawn area contains decorative dropped items or protected entities.
  • Keep messages.warning.seconds-before lower than auto-clear.interval; invalid warning timing is disabled safely and logged.
  • Reloading with /maxclear reload is enough for normal configuration changes.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.1.x1.21.x1.20.x1.19.x

Платформы

Поддерживаемые окружения

Сервер

Ссылки


Создатели

Детали

Лицензия:
Опубликован:9 месяцев назад
Обновлён:2 недели назад
Главная