托管服务
需要服务器来运行这个插件?你可以使用 Bungee host 创建 Minecraft 服务器。
DJail 用监狱取代了普通的封禁和静音:违规者必须徒手挖掘方块才能挣得释放。
工作原理
- 管理员通过
/setjail 创建监狱,并使用选择棒(/selectblocks)标记其挖矿区域。
- 管理员通过
/jail <player> <jail> <blocks> <reason> 将玩家送入监狱。
- 每种方块都对应一个可配置的分数值(例如石头 = 2,煤矿石 = 10)。当玩家收集的分数达到判决设定的数值时,他们将被释放。
- 被挖掘的方块会在延迟后(默认为 10 秒)在区域内的随机空闲位置重新生成,因此监狱永远不会耗尽方块。
功能
- 仅限徒手 – 囚犯只能用双手空空的状态破坏方块。方块不会掉落物品和经验值。
- 锁定区域内 – 囚犯无法离开监狱区域,也无法使用命令,除了
/jinfo,它可以显示是谁将他们关押、原因以及剩余多少分数。如果死亡,他们会在监狱重生。
- 安全的方块重生 – 方块绝不会在玩家内部重生。
- 自动释放 – 当刑期结束时,玩家会被传送至配置的出口位置。
- 刑期控制 – 缩短或延长刑期(
/minjail, /maxjail),将囚犯转移到另一座监狱(/pjail),或一次性释放一名玩家或所有玩家(/unjail)。
- 聊天静音 –
/mutjail, /unmute,以及针对监狱中所有囚犯的 /allmute 和 /unallmute。静音可以是定时的或永久的。
- 静默模式 – 添加
-s 以隐藏关于静音和释放的广播消息。
- 管理 GUI –
/infojail 打开一个包含监狱囚犯信息(进度、原因、关押者、在线状态)及传送按钮的菜单。/jhelp 和 /jguide 打开游戏内帮助菜单。
- 全息图 – 每个监狱都有一个信息全息图(
/trail, /ptrail),由 CMI 提供支持。
- 按组限制 – 配合 LuckPerms,你可以设置每个工作人员组可以判处的最大刑期(默认值:50 / 75 / 100 / 250 分)。
- 免疫权限 – 拥有
jail.bypass 权限的玩家(默认是 OP)不会被关押。
- 完全可配置 – 方块价值、重生延迟、出口位置、按钮和所有消息都存储在
config.yml 中。
命令与权限
| 命令 |
描述 |
权限 |
/jail <player> <jail> <blocks> <reason> |
关押一名玩家 |
jail:use |
/unjail <player|all> [-s] <reason> |
释放一名玩家或所有人 |
jail:unjail |
/minjail <player> <blocks> <reason> |
减少刑期 |
jail:minjail |
/maxjail <player> <blocks> <reason> |
延长刑期 |
jail:maxjail |
/pjail <player> <jail> |
将囚犯移动到另一座监狱 |
jail:pjail |
/mutjail <player> [time] [-s] <reason> |
静音一名玩家 |
jail:mutjail |
/unmute <player> [-s] <reason> |
解除静音 |
jail:unmute |
/allmute <jail> [-s] <reason> |
静音监狱中的所有囚犯 |
jail:allmute |
/unallmute <jail> [-s] <reason> |
解除监狱中所有囚犯的静音 |
jail:unallmute |
/setjail <name> |
创建一座监狱 |
setjail:use |
/deljail <name> |
删除一座监狱 |
deljail:use |
/setjailloc <name> |
设置监狱的位置 |
jail:setjailloc |
/selectblocks <jail> <start|end> |
选择挖矿区域 |
jail:selectblocks |
/trail <name> / /ptrail <name> |
放置 / 移动监狱全息图 |
trail:use / ptrail:use |
/jails |
列出所有监狱 |
jail:jails |
/infojail <jail> |
打开监狱菜单 |
jail.infojail |
/jhelp, /jguide |
游戏内帮助菜单 |
jail:jhelp |
/jinfo |
囚犯自己的刑期信息 |
无 |
依赖要求
- Paper(或其兼容分支),基于 1.16.5 API 构建。已在以下版本测试:[your versions]
- Java 15 或更高版本
- CMI 和 CMILib(必需;这些不在 Modrinth 上提供)
- LuckPerms(必需)
安装
- 将插件
.jar 放入你的 plugins 文件夹,并确保已安装 CMI、CMILib 和 LuckPerms。
- 启动服务器并编辑
plugins/DJail/config.yml:设置方块价值、出口位置和组的限制。
- 使用
/setjail <name> 创建一座监狱,然后使用 /selectblocks <name> start 标记其区域(用选择棒左键和右键点击两个角),最后使用 /selectblocks <name> end 完成设置。
数据与隐私
数据默认存储在本地 SQLite 数据库中。MySQL 为可选。该插件不进行其他网络连接,也不收集遥测数据。
语言
默认消息为俄语。所有内容均可在 config.yml 中更改。
На русском
DJail заменяет обычный бан или мут тюрьмой: нарушитель отрабатывает наказание, ломая блоки голыми руками.
Как это работает: администратор создаёт тюрьму (/setjail) и выделяет зону добычи палкой (/selectblocks). Модератор сажает игрока командой /jail <игрок> <тюрьма> <блоки> <причина>. Каждый тип блока стоит настраиваемое число очков, а игрок освобождается, когда наберёт нужное количество. Сломанные блоки восстанавливаются через заданное время в случайном свободном месте зоны.
Возможности: ломать блоки можно только пустыми руками, дроп и опыт отключены; заключённый не может покинуть зону и использовать команды (кроме /jinfo); можно уменьшать и увеличивать срок, переводить игроков между тюрьмами, освобождать одного игрока или всех сразу; есть муты (в том числе на всех заключённых тюрьмы), тихий режим -s, меню /infojail, голограммы тюрем и лимиты срока по группам LuckPerms.
Требования: Paper (API 1.16.5), Java 15+, CMI и CMILib, LuckPerms. Сообщения по умолчанию на русском и полностью настраиваются в config.yml.
Hosting
Need a server to run this plugin on? You can create a Minecraft server with Bungee host
DJail replaces plain bans and mutes with a jail where rule-breakers earn their release by mining blocks with their bare hands.
How it works
- An admin creates a jail with
/setjail and marks its mining zone with a selection stick (/selectblocks).
- A moderator sends a player there with
/jail <player> <jail> <blocks> <reason>.
- Every block type is worth a configurable number of points (for example stone = 2, coal ore = 10). The player is released once they have collected the number of points set in the sentence.
- Mined blocks come back after a delay (10 seconds by default) at a random free spot in the zone, so the jail never runs out of blocks.
Features
- Hands only – a prisoner can break blocks only with both hands empty. Blocks drop no items and no XP.
- Locked in – prisoners can't leave the jail zone and can't use commands, except
/jinfo, which shows who jailed them, why, and how many points are left. They respawn in the jail if they die.
- Safe block respawn – blocks never respawn inside a player.
- Automatic release – when the sentence is done, the player is teleported to the configured exit location.
- Sentence control – shorten or extend a sentence (
/minjail, /maxjail), move a prisoner to another jail (/pjail), or free one player or everyone at once (/unjail).
- Chat mutes –
/mutjail, /unmute, plus /allmute and /unallmute for every prisoner in a jail. Mutes can be timed or permanent.
- Silent mode – add
-s to hide the broadcast message for mutes and releases.
- Admin GUI –
/infojail opens a menu with the prisoners of a jail (progress, reason, who jailed them, online status) and teleport buttons. /jhelp and /jguide open an in-game help menu.
- Holograms – an info hologram for each jail (
/trail, /ptrail), powered by CMI.
- Per-group limits – with LuckPerms you set the maximum sentence each staff group can hand out (defaults: 50 / 75 / 100 / 250 points).
- Immunity – players with
jail.bypass (operators by default) can't be jailed.
- Fully configurable – block values, respawn delay, exit location, buttons and every message live in
config.yml.
Commands and permissions
| Command |
Description |
Permission |
/jail <player> <jail> <blocks> <reason> |
Jail a player |
jail:use |
/unjail <player|all> [-s] <reason> |
Release a player or everyone |
jail:unjail |
/minjail <player> <blocks> <reason> |
Reduce a sentence |
jail:minjail |
/maxjail <player> <blocks> <reason> |
Extend a sentence |
jail:maxjail |
/pjail <player> <jail> |
Move a prisoner to another jail |
jail:pjail |
/mutjail <player> [time] [-s] <reason> |
Mute a player |
jail:mutjail |
/unmute <player> [-s] <reason> |
Remove a mute |
jail:unmute |
/allmute <jail> [-s] <reason> |
Mute all prisoners of a jail |
jail:allmute |
/unallmute <jail> [-s] <reason> |
Unmute all prisoners of a jail |
jail:unallmute |
/setjail <name> |
Create a jail |
setjail:use |
/deljail <name> |
Delete a jail |
deljail:use |
/setjailloc <name> |
Set a jail's location |
jail:setjailloc |
/selectblocks <jail> <start|end> |
Select the mining zone |
jail:selectblocks |
/trail <name> / /ptrail <name> |
Place / move a jail hologram |
trail:use / ptrail:use |
/jails |
List all jails |
jail:jails |
/infojail <jail> |
Open the jail menu |
jail.infojail |
/jhelp, /jguide |
In-game help menu |
jail:jhelp |
/jinfo |
Prisoner's own sentence info |
none |
Requirements
- Paper (or a compatible fork), built against the 1.16.5 API. Tested on: [your versions]
- Java 15 or newer
- CMI and CMILib (required; these are not on Modrinth)
- LuckPerms (required)
Installation
- Put the plugin
.jar in your plugins folder and make sure CMI, CMILib and LuckPerms are installed.
- Start the server and edit
plugins/DJail/config.yml: block values, exit location, group limits.
- Create a jail with
/setjail <name>, then mark its zone with /selectblocks <name> start (left and right click two corners with the stick) and finish with /selectblocks <name> end.
Data and privacy
Data is stored locally in SQLite by default. MySQL is optional. The plugin makes no other network connections and collects no telemetry.
Language
Default messages are in Russian. All of them can be changed in config.yml.
На русском
DJail заменяет обычный бан или мут тюрьмой: нарушитель отрабатывает наказание, ломая блоки голыми руками.
Как это работает: администратор создаёт тюрьму (/setjail) и выделяет зону добычи палкой (/selectblocks). Модератор сажает игрока командой /jail <игрок> <тюрьма> <блоки> <причина>. Каждый тип блока стоит настраиваемое число очков, а игрок освобождается, когда наберёт нужное количество. Сломанные блоки восстанавливаются через заданное время в случайном свободном месте зоны.
Возможности: ломать блоки можно только пустыми руками, дроп и опыт отключены; заключённый не может покинуть зону и использовать команды (кроме /jinfo); можно уменьшать и увеличивать срок, переводить игроков между тюрьмами, освобождать одного игрока или всех сразу; есть муты (в том числе на всех заключённых тюрьмы), тихий режим -s, меню /infojail, голограммы тюрем и лимиты срока по группам LuckPerms.
Требования: Paper (API 1.16.5), Java 15+, CMI и CMILib, LuckPerms. Сообщения по умолчанию на русском и полностью настраиваются в config.yml.
评论 0
登录后参与评分
还没有评论,来抢沙发吧