Chestify
用密码锁保护你的宝藏!
概述
Chestify 是一款 Minecraft 插件,通过允许玩家创建受 PIN 码保护的箱子(称为 保险箱),为你的贵重物品提供更高水平的安全保障。使用 Chestify,你可以将珍贵物品存放在需要 4 位 PIN 码才能打开的保险箱中,确保只有授权玩家才能开启。这款插件非常适合旨在增强玩家安全性而不大幅改变原版游戏体验的服务器。
功能
- PIN 码保护保险箱:创建需要输入 4 位 PIN 码才能打开的箱子。
- 图形化 PIN 码输入:直观的 GUI 界面允许玩家使用 0 到 9 的数字输入 PIN 码。
- 玩家授权:正确输入 PIN 码的玩家将被授权,无需再次输入代码即可访问保险箱。
- 可配置的合成配方:自定义保险箱的合成配方,或完全禁用合成。
- 视觉效果与音效:在成功或尝试访问保险箱失败时,享受可定制的视觉和音频反馈。
- 破坏保护:保险箱不会因爆炸、火焰或未授权玩家的破坏而损坏。
- 自定义消息与设置:所有消息和插件设置均可通过
config.yml 进行配置。
- 错误 PIN 码惩罚:可选地,对输入错误 PIN 码的玩家造成伤害。
安装
- 下载:从 Modrinth 获取
Chestify.jar 插件文件。
- 安装:将
Chestify.jar 文件放入服务器的 plugins 目录中。
- 重启服务器:重启服务器以生成默认配置文件。
- 配置:编辑位于
plugins/Chestify 中的 config.yml 文件,根据需要自定义设置。
- 重载插件:使用
/chestify reload 应用配置更改,无需重启服务器。
配置
config.yml 文件允许你自定义以下内容:
- 合成配方:定义或禁用保险箱的合成配方。
- 效果与音效:自定义成功和失败交互时的视觉和音效。
- 消息:编辑所有面向玩家的消息,以进行本地化或个人化定制。
- 伤害设置:配置输入错误 PIN 码时造成的伤害。
- 合成开关:启用或禁用合成保险箱的功能。
config.yml 示例
settings:
enable_crafting: true
safe_recipe:
shape:
- 'III'
- 'ICI'
- 'IBI'
ingredients:
I: 'IRON_BLOCK'
C: 'CHEST'
B: 'DIAMOND_BLOCK'
damage_on_incorrect_pin: true
damage_amount: 2.0
effects:
success:
sound: 'ENTITY_PLAYER_LEVELUP'
sound_volume: 1.0
sound_pitch: 1.0
particle: 'VILLAGER_HAPPY'
particle_count: 10
failure:
sound: 'ENTITY_VILLAGER_NO'
sound_volume: 1.0
sound_pitch: 1.0
particle: 'SMOKE_NORMAL'
particle_count: 10
messages:
safe_placed: '&a你已放置了一个保险箱。请设置你的 PIN 码。'
enter_pin: '输入你的 PIN 码'
pin_set_success: '&aPIN 码设置成功!'
pin_correct: '&aPIN 码正确。保险箱已解锁。'
pin_incorrect: '&cPIN 码错误。'
cannot_break_safe: '&c你无法破坏这个保险箱。'
safe_given: '&a你获得了一个保险箱。'
safe_given_to_other: '&a你将一个保险箱给了 {player}。'
no_permission: '&c你没有权限使用此命令。'
player_not_found: '&c未找到该玩家。'
specify_player: '&c请指定要将保险箱给予的玩家。'
reload_success: '&aChestify 配置已成功重载。'
set_your_pin: '设置你的 PIN 码'
命令与权限
-
命令: /givesafe [player]
- 描述: 给自己或指定玩家发放一个保险箱。
- 权限:
chestify.give
-
命令: /chestify reload
- 描述: 重载插件配置。
- 权限:
chestify.reload
-
权限:
chestify.bypass.open — 允许在不输入 PIN 码的情况下打开受 PIN 码保护的保险箱。
chestify.bypass.break — 允许在未授权的情况下破坏受 PIN 码保护的保险箱。
使用方法
1. 获取保险箱
- 合成:使用
config.yml 中定义的可定制配方制作保险箱(如果启用了合成)。
- 命令:使用
/givesafe 接收一个保险箱(需要相应权限)。
2. 放置保险箱
3. 设置 PIN 码
- 放置保险箱后,GUI 会提示你使用 0 到 9 的数字设置 4 位 PIN 码。
4. 访问保险箱
- 授权访问:如果你是所有者或之前已输入过正确的 PIN 码,可以直接打开保险箱而无需输入 PIN。
- 未授权访问:其他玩家必须输入正确的 PIN 码才能访问保险箱。
5. 共享访问权限
- 将你的 PIN 码分享给信任的玩家,以授予他们访问你保险箱的权限。
6. 破坏保险箱
- 只有所有者或授权玩家可以破坏保险箱。
- 保险箱免疫由爆炸、火焰和其他环境因素造成的破坏。
兼容性
- Minecraft 版本: 1.19 - 1.21
- 服务端软件: Spigot, Paper, Purpur
要求
- Java 版本: Java 17 或更高版本
- 权限插件(可选):用于管理用户权限。
功能详情
PIN 码保护保险箱
- 保险箱的功能类似于普通箱子,但需要 PIN 码才能访问。
- PIN 码被安全存储,并与保险箱的位置相关联。
图形化 PIN 码输入
- 玩家通过与包含 0 到 9 数字的 GUI 互动来输入他们的 PIN 码。
- GUI 直观且用户友好,提升了游戏体验。
视觉效果与音效
- 成功效果:成功输入 PIN 码时播放可定制的音效和粒子效果。
- 失败效果:不同的音效和粒子指示 PIN 码输入错误。
- 可以在配置中自定义或禁用这些效果。
错误密码伤害
- 可选择对尝试使用错误密码打开保险箱的玩家造成伤害。
- 伤害数值可配置,以此威慑暴力破解行为。
破坏保护
- 未经授权的玩家、爆炸或环境危害无法破坏保险箱。
- 只有所有者或已授权玩家才能破坏并移动保险箱。
已知问题
- 与其他插件的兼容性:如果其他插件修改了箱子机制,可能需要进行测试。
- 伤害设置:配置不当可能导致意外的玩家伤害。请确保设置正确。
许可证
本插件根据 MIT 许可证 发布。
增强功能与未来计划
- 本地化:虽然消息可以自定义,但未来的更新可能会内置多语言支持。
- 扩展授权:有望添加限时访问或访问日志功能。
- 自定义:提供更多关于保险箱外观的选项以及额外的安全功能。
使用 Chestify 保护您的贵重物品,为您的 Minecraft 服务器带来全新的安全性和交互体验!
Chestify
Secure your treasures with PIN-protected chests!
Overview
Chestify is a Minecraft plugin that introduces a new level of security for your valuable items by allowing players to create PIN-protected chests, known as safes. With Chestify, you can store your precious belongings in safes that require a 4-digit PIN code to access, ensuring that only authorized players can open them. This plugin is perfect for servers aiming to enhance player security without drastically changing the vanilla gameplay experience.
Features
- PIN-Protected Safes: Create chests that require a 4-digit PIN code to open.
- Graphical PIN Entry: An intuitive GUI allows players to enter their PIN codes using digits from 0 to 9.
- Player Authorization: Players who correctly enter the PIN code become authorized and can access the safe without re-entering the code.
- Configurable Crafting Recipe: Customize the crafting recipe for safes or disable crafting entirely.
- Visual and Sound Effects: Enjoy customizable visual and audio feedback upon successful or failed attempts to access a safe.
- Destruction Protection: Safes cannot be destroyed by explosions, fire, or unauthorized players.
- Custom Messages and Settings: All messages and plugin settings are configurable through
config.yml.
- Damage on Incorrect PIN: Optionally inflict damage on players who enter the wrong PIN code.
Installation
- Download: Get the
Chestify.jar plugin file from Modrinth.
- Install: Place the
Chestify.jar file into your server's plugins directory.
- Restart Server: Restart your server to generate the default configuration files.
- Configure: Edit the
config.yml file located in plugins/Chestify to customize settings as needed.
- Reload Plugin: Use
/chestify reload to apply configuration changes without restarting the server.
Configuration
The config.yml file allows you to customize:
- Crafting Recipe: Define or disable the crafting recipe for safes.
- Effects and Sounds: Customize visual and sound effects for successful and failed safe interactions.
- Messages: Edit all player-facing messages for localization or personalization.
- Damage Settings: Configure damage inflicted on incorrect PIN entry.
- Crafting Toggle: Enable or disable the ability to craft safes.
Example config.yml
settings:
enable_crafting: true
safe_recipe:
shape:
- 'III'
- 'ICI'
- 'IBI'
ingredients:
I: 'IRON_BLOCK'
C: 'CHEST'
B: 'DIAMOND_BLOCK'
damage_on_incorrect_pin: true
damage_amount: 2.0
effects:
success:
sound: 'ENTITY_PLAYER_LEVELUP'
sound_volume: 1.0
sound_pitch: 1.0
particle: 'VILLAGER_HAPPY'
particle_count: 10
failure:
sound: 'ENTITY_VILLAGER_NO'
sound_volume: 1.0
sound_pitch: 1.0
particle: 'SMOKE_NORMAL'
particle_count: 10
messages:
safe_placed: '&aYou have placed a safe. Set your PIN code.'
enter_pin: 'Enter your PIN code'
pin_set_success: '&aPIN code set successfully!'
pin_correct: '&aCorrect PIN. Safe unlocked.'
pin_incorrect: '&cIncorrect PIN.'
cannot_break_safe: '&cYou cannot break this safe.'
safe_given: '&aYou have received a safe.'
safe_given_to_other: '&aYou have given a safe to {player}.'
no_permission: '&cYou do not have permission to use this command.'
player_not_found: '&cPlayer not found.'
specify_player: '&cPlease specify a player to give the safe to.'
reload_success: '&aChestify configuration reloaded successfully.'
set_your_pin: 'Set your PIN code'
Commands and Permissions
How to Use
1. Obtain a Safe
- Crafting: Create a safe using the customizable recipe defined in
config.yml (if crafting is enabled).
- Command: Use
/givesafe to receive a safe (requires appropriate permissions).
2. Place the Safe
- Place the safe in your desired location in the world.
3. Set Your PIN Code
- Upon placing the safe, a GUI will prompt you to set a 4-digit PIN code using digits from 0 to 9.
4. Accessing the Safe
- Authorized Access: Open the safe without entering the PIN if you are the owner or have previously entered the correct PIN.
- Unauthorized Access: Other players must enter the correct PIN code to access the safe.
5. Sharing Access
- Share your PIN code with trusted players to grant them access to your safe.
6. Breaking the Safe
- Only the owner or authorized players can break the safe.
- Safes are immune to destruction by explosions, fire, and other environmental factors.
Compatibility
- Minecraft Versions: 1.19 - 1.21
- Server Software: Spigot, Paper, Purpur
Requirements
- Java Version: Java 17 or higher
- Permissions Plugin (optional): For managing user permissions.
Features in Detail
PIN-Protected Safes
- Safes function like regular chests but require a PIN code to access.
- The PIN code is stored securely and is associated with the safe's location.
Graphical PIN Entry
- Players interact with a GUI featuring digits from 0 to 9 to enter their PIN code.
- The GUI is intuitive and user-friendly, enhancing the gameplay experience.
Visual and Sound Effects
- Success Effects: Customizable sounds and particle effects play upon successful PIN entry.
- Failure Effects: Different sounds and particles indicate incorrect PIN entry.
- Effects can be customized or disabled in the configuration.
Damage on Incorrect PIN
- Optionally inflict damage on players who attempt to open a safe with the wrong PIN.
- Damage amount is configurable, adding a deterrent against brute-force attempts.
Destruction Protection
- Safes cannot be destroyed by non-authorized players, explosions, or environmental hazards.
- Only the owner or authorized players can break and relocate the safe.
Known Issues
- Compatibility with Other Plugins: May require testing if other plugins alter chest mechanics.
- Damage Settings: Incorrect configuration may lead to unintended player damage. Ensure settings are correct.
License
This plugin is released under the MIT License.
Enhancements and Future Plans
- Localization: While messages can be customized, future updates may include built-in support for multiple languages.
- Extended Authorization: Potential to add time-limited access or access logs.
- Customization: More options for safe appearances and additional security features.
Secure your valuable items with Chestify and bring a new level of security and interaction to your Minecraft server!
评论 0
登录后参与评分
还没有评论,来抢沙发吧