受够了别人偷走你的岩浆池垃圾桶?箱子和其他装置是否在你的小屋中占据了太多空间?这里有一个简单的解决方案:一个丢弃标牌。
创建一个丢弃标牌——像右键点击箱子一样右键点击这个丢弃标牌,然后把你的垃圾扔进标牌里。关闭窗口,砰!一切都消失了。就是这么简单。
查看“指南与图片”页面以获得视觉体验 :)
功能:
- 超简单的标牌设计
- 多种创建关键词
- 提供个人/共享或全局丢弃标牌选项
- 权限控制允许完全管理谁可以创建哪种类型的丢弃标牌(/op 可覆盖)
标牌类型:
- 个人 - 仅由创建标牌的本人访问
- 共享 - 最多可与两位朋友分享你的个人丢弃标牌——其他人将被拒绝访问。
- 全局 - 任何人都可以访问和使用这些丢弃标牌
权限:
- disposalsign.create.personal - 允许创建个人丢弃标牌。
- disposalsign.create.friends - 允许创建共享丢弃标牌。
- disposalsign.create.any - 允许创建所有三种丢弃标牌类型。
“好吧——这听起来很不错,但我如何创建这些标牌呢?”
只需在标牌的第二行输入方括号内的任意关键词即可。
有效的关键词包括:
- [Disposal]
- [Garbage]
- [Trashcan]
- [Trash](将重新排序显示为:“Trashcan”)
“个人”和“共享”丢弃标牌会自动在第一行填入所有者名称。
拥有“disposalsign.create.any”权限的玩家默认使用“共享”丢弃标牌行为,这意味着所有者名称会填充在标牌的第一行。由于“any”权限也起到某种管理员功能的作用,拥有此权限或服务器 OP 的玩家可以在第一行手动输入任何玩家名称,从而将标牌的所有权转让给该玩家。创建全局标牌需要在第一行输入星号 / 星星 —— 这将清除除包含标牌关键词的第二行之外的所有行,使丢弃标牌对所有人开放使用。
如果玩家至少拥有“disposalsign.create.friends”权限,则标牌的第三行和第四行可以包含其他玩家名称,这些玩家将获得对此丢弃标牌的访问权限。
丢弃标牌不受破坏保护,并且除了游戏通常保存标牌的方式外,它们不会以其他方式存储。当正确创建标牌时,包含关键词的标牌第二行文本将变为蓝色。同时还会显示一条聊天消息。目前文本仅支持英文。
未来计划?
目前我只是将这个插件公开发布,希望它能带来一些乐趣。我可能会添加一个配置文件,允许更改三个主要关键词,甚至稍后添加一些本地化内容。但我会让社区决定。
版本:
1.0.21 - 首次发布。这是我第一个插件。
已在 CraftBukkit 1.2.5 R5 和 1.3.1 上测试。
权限插件:PEX 1.19.3(我尚未测试与其他权限插件的兼容性,因此如果不兼容请告知我)
(源代码包含在 jar 文件中)
Tired of people stealing your lava pit trashcan? Are chests and similar contraptions taking up too much space in your hutt? Here's the simple solution: a Disposal Sign.
Create a DisposalSign - right-click the DisposalSign like you would any chest and dump your trash in the sign. Close the window and poof it's all gone. Couldnt be simpler.
Check the "Guide & Pictures" page for a visual experience :)
Features:
- Ultra simple sign design
- Multiple keywords for creation
- Personal / Shared or Global DisposalSigns available
- Permissions allows full control of who can create which types of Disposal Signs (/op overrules)
Sign types:
- Personal - only accessible by the person who created the sign
- Shared - share your personal DisposalSign with up to two friends - all others are denied access.
- Global - anyone can access and use these DisposalSigns
Permissions:
- disposalsign.create.personal - allows creation of Personal DisposalSigns.
- disposalsign.create.friends - allows creation of Shared DisposalSigns.
- disposalsign.create.any - allows creation of all three DisposalSign types.
"Alright - this sounds all good and dandy but how do I create these signs?"
Simply input any of the keywords in brackets on the second line of the sign.
Valid keywords are:
- [Disposal]
- [Garbage]
- [Trashcan]
- [Trash] (will reorder to display: "Trashcan")
Both "Personal" and "Shared" DisposalSigns will automatically fill in the owner's name on the first line.
Players with the "disposalsign.create.any" permission will default to "Shared" DisposalSign behaviour meaning the owner's name will be filled on the first sign line. Since the "any" permission also serves as sort of an admin function players with this permission or with server OP are able to manually fill in any player name on the first line to turn over ownership of the sign to that player. Creating a Global sign requires that an asterisk / star be input on the first line - this will clear all lines except the second line containing the keyword for the sign leaving the DisposalSign open for anyone to use.
If a player has at least "disposalsign.create.friends" permission the third and fourth sign lines may contain other player names who will be granted access to this DisposalSign.
DisposalSigns are not break protected and they are not stored in any way except how the game usually saves signs. When signs are created correctly the second text line on the sign containing the keyword will turn blue. A chat text message will also be displayed. For now texts are in english only.
Future?
For now I'm just releasing my plugin to the public in hopes it'll bring some joy. I might add a config file that could allow changes to the three major keywords and maybe even add some localization later on. But I'll let the community decide.
Version:
1.0.21 - first release. This is my first plugin ever.
Tested on CraftBukkit 1.2.5 R5 and 1.3.1.
Permissions plugin: PEX 1.19.3 (I havnt tested against other Permission plugins so please let me know if it doesnt work)
(SourceCode included in the jar)
评论 0
登录后参与评分
还没有评论,来抢沙发吧