MonitoringMinecraft MonitoringMinecraft

ChestKey

Плагин BukkitPaperSpigot

ChestKey — плагин для Майнкрафт на Paper: защищай сундуки уникальными ключами без NMS и рефлексии.

112 скачиваний 1 подписчик
Оцените первым

ChestKey

ChestKey is a Minecraft plugin for Paper (1.21.11) for locking and protecting chests using unique keys. It works on Java-based servers using Paper API 1.21 or higher and uses only the official Adventure API for texts. It does not require NMS or Reflection.

Features

  • Unique keys: Each key is a TRIPWIRE_HOOK with a random UUID in the PersistentDataContainer, a visible short ID in the Lore, and a glitter effect.

  • Lock/unlock chest: Shift-right-click on a (Trapped)Chest with a key links the chest to the key without consuming it. Double chests are treated as a single unit.

  • Opening: Only players with a key in their main or off-hand can open locked chests. Incorrect or missing keys block opening and display particles/indicators.

  • Break rules: Locked chests can only be broken with the correct key. Admins with chestlock.admin.break can break any chest.

  • Crafting duplication: Mixing a key and an iron ingot produces two keys with identical UUIDs (provided by a Shapeless recipe).

  • Bypass protection: Hoppers, pistons, and explosions cannot affect locked chests.

  • Configurable visual effects: Particles and small hint signs can be turned on/off in config.yml.

Installation

  1. Build the project with Maven:
mvn package
  1. Copy the generated JAR (target/chestlock-1.0-SNAPSHOT.jar) to the plugins directory of your Paper server.
  2. Start the server. When starting for the first time, messages.yml and config.yml will be created in the plugin data folder.
  3. Customise messages.yml or config.yml as needed.

Configuration

config.yml currently contains two options:

visual:
  particles: true
  indicator: true
  • particles: activates particle effects when opening attempts fail and after locking.
  • indicator: displays a temporary 'closed' sign above the chest.

A complete sample configuration is included in the plugin archive.

Messages

All texts come from messages.yml and use the MiniMessage format. You can customise this file to use translations or your own colours.

Example entries:

chest:
  locked: '<red>This chest is locked and you do not have the right key.'
Смотри также

Похожие подборки плагины — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
1737 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
Minestory
24 онлайн
1.21 — 26.2 версия
Выживание • Экономика • Кланы • Приваты • Ивенты • PVP • Работа
BULLCRAFT
BULLCRAFT Java + BE
146 онлайн
26.2 версия
Анархия! PvP | Работают поршни и вагонетки
ReallyWorld КОПИЯ ВСЕМ АДМИНКА
56 онлайн
1.16.5 — 1.21.1 версия
ПвП, Гриферство, бесплатный донат Dragon, AIR DROP
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.4. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат