1 Bunny Doors
此插件允许你使用特定的钥匙锁定服务器上的特定门和箱子。只有持有该钥匙的玩家才能打开门。
有许多插件可以为你提供针对门的特定自定义权限,但本插件与众不同。本插件的目的是模拟老式日式角色扮演游戏(JRPG)中的门(想想《勇者斗恶龙》)。它旨在让你轻松创建需要钥匙才能开启的门。我一直希望拥有带权限控制的门功能,因此决定自己开发这个插件。
让 Citizens NPC 在完成任务后给予玩家特殊的钥匙!让你的盗贼英雄职业具备开锁能力!为 VIP 提供特殊访问权限!可能性无穷无尽!
1.1 特性
- 创建无限数量的门,以及无限数量的解锁钥匙!
- 可与任何权限系统配合使用。
- 简单的 Spout 集成,未来还将增加更多功能!
- 钥匙以权限的形式实现,因此你可以将其与各种其他插件结合使用,以增强你的体验。
- 安装了 Vault 后,你可以将钥匙放入箱子中!
2 依赖项
Bunny Doors 开箱即用,无需任何其他插件即可正常工作。强烈建议你安装区域保护插件如 Worldguard。(如果你知道其他区域保护插件,请告诉我,以便我更新本文档)
关于保护插件的唯一要求是:它们必须阻止用户在放置或移除门所在区域的方块时进行操作。
除了你选择的保护插件外,如果安装了 Spout 或 Vault,BunnyDoors 将为你提供额外的功能。这叫渐进式增强,非常棒。
2.2 Vault:
- 为你提供
/bunnykey give 命令的访问权限
- 允许将钥匙放入箱子中
2.3 Spout:
- 允许将钥匙放入箱子中
- 当用户打开背包或从箱子中获得钥匙时,发送类似“成就获得!”的通知。
3 开源!
我是通过查看他人的源代码来学习插件开发的,基本上是在 Bukkit 巨人的肩膀上站立。因此,如果不将此插件开源简直太疯狂了,而且有点糟糕。
源代码:
我没有制定宏大的计划,而是计划了一系列非常小的独立版本发布。如果有人愿意帮忙,非常欢迎 fork 仓库,我会合并更改(假设它们能正常工作)。请随时下载并贡献代码。
最后,很有可能有一天我会停止开发此插件(由于时间限制、讨厌编写 Java 代码,或者仅仅是因为“嘿,看那边有个闪亮的东西”)。当这种不可避免的情况发生时,我想确保作为服务器管理员的你能够根据新版本的 Bukkit 更新此插件。这也意味着
4 更新日志
- 0.1
- 首个版本
- 0.2
-
- 添加了序列化方案
- 添加了配置文件,支持自定义钥匙
- 添加了 /bunnydoor lock 命令
- 添加了 /bunnydoor unlock 命令
- 添加了 /bunnydoor reload 命令
- 0.3
-
- 添加了 /bunnykey 命令(包含 list、listall 和 add 子命令)
- 锁定的门在 10 秒后自动关闭。
- 调试模式已关闭(抱歉造成刷屏)
- 0.4
-
- 修复了 /bunnykey 权限问题
- 实现了 /bunnykey give 命令
- 添加了在配置文件中关闭 devilstats 的能力。(这本来应该早就加入的,抱歉)
- 修复了一个门 bug:下半部分的门被复制到了上半部分
- 门信息现在显示更多关于门的信息(例如是谁锁定的)。界面也更美观了。
- 0.5
-
- 通过通知接口添加了非常基础的 Spout 支持。请注意,这只是一个“软依赖”。你不需要 Spout 也能让它运行!
- 0.6
-
- 箱子现在也可以上锁。
- 添加了供其他插件调用的 API
- 可以使用
/bunnykey put <key> 将钥匙放入箱子,并使用 /bunnykey take 取出。
- 0.7
-
- 修复了非 SpoutCraft 客户端在物品栏中显示钥匙列表的问题
- 活板门现在可以上锁!
- 新增物品钥匙功能!
- 配置选项:设置门自动关闭的时间(closeDoorAfter)
- 配置选项:控制何时向原版客户端发送钥匙通知文本(notifyVanillaClientsOn),设为 0 可完全禁用此功能
日期:2012-02-18 14:46:01 MST
作者:Jonathan Arkell
Org 版本 7.7,配合 Emacs 版本 24
1 Bunny Doors
This plugin lets you lock specific doors and chests on your server with a particular key. Only players with that key can open the door.
- Quick Start :
- Documentation :
- Source Code :
There are plenty of plugins that give you specific custom permissions for doors but this plugin is different. The point of this plugin is
to emulate old-school JRPG doors (Think Dragon Quest). It aims to be easy for you to create doors that require keys. I've been wanting
doors-with-permissions for a long time now, and decided to roll my own.
Make Citizens NPCs give your players special keys for completing quests! Give your theif Hero class the ability to pick locks! Give
VIPs special access! So many possibilities!
1.1 Features
- Create an unlimited number of doors, and an unlimited number of keys to unlock them!
- Use with any permissions system.
- Simple Spout integration, with more coming!
- Keys are implemented as permissions, so you can use it with a variety of other plugins to enhance your experience.
- With Vault installed, you can put keys inside of chests!
2 Requirements
Bunny Doors will work, as is, out of the box, without any other plugin. It is HIGHLY recommended that you have a region protection plugin
like Worldguard. (If you know of any other region protection plugins, then I'd like to hear about them, so I can update this document)
The only requirements around a protection plugin, is they must block a user from placing or removing blocks in the area where your door is.
Beyond the protection plugin of your choice, if you have Spout or Vault installed, then BunnyDoors will give you extra functionality.
It's called progressive enhancement baby, and it rules.
2.2 Vault:
- Gives you access to the
/bunnykey give command
- Allows keys to be put inside of chests
2.3 Spout:
- Allows keys to be put inside of chests
- Sends "Achievement Get!" style notifications when the user opens their inventory, or gets a key from a chest.
3 Open source!
I am leaning plugin development by looking at other peoples source, and basically standing upon the shoulders of bukkit giants. So NOT
making this plugin open source would be insane, and kinda lame.
Source code:
Instead of large grand plans, I have a set of very small discreet releases planned. If anyone wants to help, they are more then welcome
to fork the repo, and I will pull the changes (assuming they work). Please feel free down download an contribute.
finally, there is a better then even chance that at some point, I will stop developing this plugin (due to time constraints, hatred of
writing java, or a case of hey-look-at-that-shiny-thing-over-there). When that inevitability happens, I want to make sure that you, as
a server admin, can update the plugin for whatever new version of Bukkit comes out. It also means
4 Changelog
- 0.1
- First version
- 0.2
-
- Added Serialization scheme
- added config file, with ability to customize keys
- added /bunnydoor lock command
- added /bunnydoor unlock command
- added /bunnydoor reload command
- 0.3
-
- added /bunnykey command (with list, listall and add subcommands)
- locked doors close after 10 seconds.
- debugging is turned off (Sorry about the spam)
- 0.4
-
- fixed /bunnykey permissions issue
- implemented /bunnykey give command
- added ability to turn off devilstats in the config. (this should have been in there earlier. Sorry)
- Fixed a door bug where the bottom half of the door gets copied into the top
- Door info now displays more info about doors (i.e. who locked it) It's prettier too.
- 0.5
-
- Added very basic spout support through the notification interface. Note that this is only a "soft dependency". You don't need spout
to make it go!
- 0.6
-
- Chests are now lockable too.
- Added API Call for other plugins
- A key can be put inside of chests with
/bunnykey put <key> and taken out with /bunnykey take
- 0.7
-
- Fixed a problem with the keys being listed in the inventory for non-spoutcraft clients
- Trap Doors are lockable!
- Item Keys!
- Config option to set when the door auto-closes (closeDoorAfter)
- Config option on to control when the key notification text is sent to vanilla clients (notifyVanillaClientsOn) use 0 to disable it
completely
Date: 2012-02-18 14:46:01 MST
Author: Jonathan Arkell
Org version 7.7 with Emacs version 24
评论 0
登录后参与评分
还没有评论,来抢沙发吧