NoFloatingTrees
Description
此插件会在玩家砍倒树木后,尝试移除悬空在空中的原木,从而使树叶能够自然腐烂。悬空的树叶是我的“死穴”,而目前处理它们的方法似乎要么会给玩家大量免费木材,要么会耗费大量的管理员时间。
任何被部分砍伐的树木都会在一段时间内像正常树叶一样腐烂,通常在砍伐后 40 秒开始。自然腐烂的原木有 15% 的几率掉落物品,这应该能阻止人们砍树后等待其倒塌的行为。所有这些几率和时间都可以通过配置文件进行修改。
如果您安装了 LogBlock 插件,此插件移除的任何方块都将作为用户 NoFloatingTrees 进行记录。请注意,这只适用于安装插件后被砍伐的树木,对于已存在的树木无能为力 :(
Bug Reports / Suggestions
如果您发现错误、遇到问题或有建议,请通过上方的 Tickets 链接提交工单。我没有时间阅读评论区,任何符合上述三类情况(报错、问题、建议)的评论都将被忽略。
Commands
/nft queue - 打印当前处于腐烂队列中的方块数量。使用此命令需要拥有 nofloatingtrees.queue.size 权限,该权限默认仅对 OP(管理员)开放。
/nft purge - 用于清除所有悬空的树木,无论玩家距离多远。使用此命令需要拥有 nofloatingtrees.queue.purge 权限,该权限默认仅对 OP(管理员)开放。
Config
Default
use-logblock: true ignore-worlds: - world_nether - world_the_end decay: frequency: 2 wait-time: 40 chance: 15 drop-chance: 15
use-logblock
如果设置为 false,即使检测到 LogBlock,插件移除的方块也不会被记录。
ignore-worlds
如果您有某些世界不允许(或只是没人去)砍树,请将它们列在此处,这将略微提升性能。
decay
frequency
悬空原木应 尝试 腐烂的频率,单位为秒。
wait-time
原木在开始腐烂前应保持悬空状态的时间,单位也为秒。
chance
原木在每次 尝试 中腐烂的可能性,这是一个百分比数值,将其设置为 100 会导致整棵树一次性消失。
drop-chance
与上述类似,但此选项控制腐烂的原木掉落物品的可能性。
Contributing
非常欢迎对本项目的贡献,如果您有想要实现的功能并知道如何优雅地实现它,可以考虑 fork 仓库并提交拉取请求。只要遵循以下简单指南,这些请求都会被接受。
- 请勿编辑 pom.xml 文件的结构,如果需要可以添加依赖项,但格式和结构不应更改。
- 如果您正在暴露新的 API 方法,请为其添加 JavaDoc 注释,但不要过度注释内部代码。
- 遵循现有的代码风格,不过不要为了每一个空格而纠结!
现在所有使用的依赖项都可以从公共 Maven 仓库获取,因此您不再需要为了一个简单的更改而去构建其他多个项目。
Source Code
Dev Builds
Changes Since Last Release
Download
可以在提供的持续集成服务器上获取本项目的开发版本。这些构建版本未经 BukkitDev 工作人员批准。使用风险自负。
Download Stats
NoFloatingTrees
Description
This plugin will try to remove any logs that are left floating in the air when a player cuts down a tree so that the leaves can decay. Floating leaves are a pet hate of mine and the current ways to tackle them seem to either involve giving the player lots of easy free wood or take up an awful lot of admin time.
Any tree that has been partially cut down will decay over time as leaves normally do 40 seconds after being cut. A log that decays naturally will have a 15% chance of dropping an item, this should discourage people from cutting down trees and then waiting for them to fall. All of these chances and timings can be changed via the config file.
If you have the LogBlock plugin installed, any blocks that this removes will be logged as the user NoFloatingTrees. Note this this will only work on trees that are cut down when the plugin is installed, there is not much that can be done about existing ones :(
Bug Reports / Suggestions
If you find a bug, encounter a problem or have a suggestion, please fill out a ticket via the Tickets link above. I do not have the time to read through the comments section, any comment that fits the previous three categories will be ignored.
Commands
/nft queue - Prints the number of blocks currently in the decay queue. To use this command you must have the nofloatingtrees.queue.size permission which also defaults to OPs only.
/nft purge - Used to removed all floating trees regardless of how close a player is. To use this command you must have the nofloatingtrees.queue.purge permission which defaults to OPs only.
Config
Default
use-logblock: true ignore-worlds: - world_nether - world_the_end decay: frequency: 2 wait-time: 40 chance: 15 drop-chance: 15
use-logblock
If this is set to false blocks removed by the plugin will not be logged even if LogBlock is found.
ignore-worlds
If you have worlds where people can't (or just don't) cut down trees you should list them here, this will improve performance slightly.
decay
frequency
How often floating logs should try to decay, in seconds.
wait-time
How long a log should stay floating before starting to decay, also in seconds.
chance
How likely it is for a low to decay per try this is a percentage so setting it to 100 will cause the entire tree to vanish in one go.
drop-chance
Similar to the above except this controls how likely it is for a decaying log to drop an item.
Contributing
Contributions to the project are very much welcome, if you have a feature that you want implemented and know a nice way to do it then consider forking the repo and submitting a pull request. These will be accepted as long as the following simple guidelines are followed.
- Do not edit the structure of the pom.xml file, feel free to add a dependency if you need it but the formatting and structure should not be changed.
- If you are exposing a new API method, add a JavaDoc comment to it, but don't over-comment internal code.
- Follow the existing code style, don't antagonise over every space though !
All dependencies that are used are now available from a public Maven repo, so you don't have to worry about building several other projects just to add a simple change any more.
Source Code
Dev Builds
Changes Since Last Release
Download
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
Download Stats
下载 NoFloatingTrees
下载 NoFloatingTrees
下载 NoFloatingTrees
下载 NoFloatingTrees
下载 NoFloatingTrees
下载 NoFloatingTrees
下载 NoFloatingTrees
下载 NoFloatingTrees
下载 NoFloatingTrees
下载 NoFloatingTrees
- 设置发布版本号
- 将命令重组为 /nft 的子命令
- 使用新的权限系统。
- 适配 BasePlugin v9.1
- 将 getTree() 方法移至主插件类
- 仅移除从腐烂队列中删除的方块。
- 修复仅在未加载区块中方块腐烂的问题。
- 适配 BasePlugin v9
- 仅处理已加载的区块。
- 更新版本号。
- 修复格式问题。
- 更新下一个发布的版本号。
- 更新版本号。
- 对 plugin.yml 文件中的值添加引号,以避免数字相关的问题
- 适配新的发布系统。
- 适配 BasePlugin v7
此版本中的权限节点已更改。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧