(最新版本仅适用于 1.8-R1 CraftBukkit 版本)
PortableLight
请使用最新版本 (v1.5a) 以获得 CB-1.8-R1 的最佳性能
感谢您超过 3,000 次下载! <3 <3 <3
什么是 'PortabLight'?
这是一个插件,允许物品在玩家手持时充当灯具。
功能与命令
- 物品充当灯具(需拥有权限 'portablelight.use' 或为 OP)
计划中的功能与命令
(我正在开发中)
- 更好的性能
最近更新
- 发布 | CB-1.7.10-R0.1-20140817.180155-16.jar | PortableLight-v1.4a.jar
- 完全重写了插件代码
- 添加了基本 API 以添加/移除发光物品
- 添加了配置文件 'plugins/PortableLight.properties' 以添加/移除发光物品(使用列表 'AllowedMaterials' 来定义物品)
- 注意:由于 dev.bukkit.org 的问题,此版本尚未发布。
- 发布 | CB-1.8-R1 | PortableLight-v1.5a.jar
- 更新至 1.8 版本(来自 BuildTools-1.8.20141228.jar)
- 修复了错误地使用 oldLL 而非 oldLLt 的问题
安装
- 下载该插件
- 将其放入您的 'plugins' 目录
- 在您的 'plugins' 目录中创建一个名为 'PortableLight.properties' 的文件(请注意,火把也需要添加到 properties 文件内的 'AllowedMaterials' 中!)
- 启动服务器
- 现在插件已准备就绪(无需配置!)
- 您可以通过更改 './plugins/PortableLight.properties' 中的 'AllowedMaterials' 属性来注册/取消注册物品(所有材质名称之间用逗号 ( , ) 分隔)。
- 您可以通过 'PortableLight' 类以编程方式访问 API 来注册/取消注册物品(请记住在您的 'plugin.yml' 中将 PortableLight 添加为依赖项)。包含的方法:
- .registerMaterial(Material material) - - 注册新材质
- .registerMaterials(Material... materials) - - 注册新材质
- .unregisterMaterial(Material material) - - 取消注册已注册的材质
- .unregisterMaterials(Material... materials) - - 取消注册已注册材质
- .isMaterialRegistered(Material material) - - 判断材质是否已注册
摘自示例 PortableLight.properties:# 将产生光照的材质列表(以逗号分隔;空格将被忽略),例如 # AllowedMaterials=<MATERIAL>,<MATERIAL> AllowedMaterials=TORCH,GLOWSTONE_DUST您可以在此处找到所有可用材质的列表。
媒体
YouTube 视频:
建议?
- 我非常欢迎任何建议 :)
漏洞
- 当前版本可能存在漏洞,因为它使用了一种未经测试的方法来确定光照等级,这会导致客户端掉帧
- 如果 './plugins' 目录中没有 PortableLight.properties 文件,当前版本会产生错误,并创建一个名为 'PortableLight.properties' 的文件夹。修复方法:手动创建 PortableLight.properties 文件(即在服务器根目录下执行 touch ./plugins/PortableLight.properties)
- 目前没有其他漏洞
(Recent version works with the 1.8-R1 CraftBukkit version only)
PortableLight
Use the latest version (v1.5a) for the best performance with CB-1.8-R1
Thank you for over 3,000 downloads! <3 <3 <3
What is 'PortabLight'?
It is a Plugin which allows items to act as a lamp while being hold by a player.
Features&Commands
- Items act as lamp (with permission: 'portablelight.use' or as op)
Planned Features&Commands
(I'm currently working on them)
- Better performance
Recently updated
- Release | CB-1.7.10-R0.1-20140817.180155-16.jar | PortableLight-v1.4a.jar
- Rewrote plugin code completely
- Added basic api to add/remove illuminating items
- Added config file 'plugins/PortableLight.properties' to add/remove illuminating items (use the list 'AllowedMaterials' to define items)
- Note that this version hasn't been published due to dev.bukkit.org issues.
- Release | CB-1.8-R1 | PortableLight-v1.5a.jar
- Updated to version 1.8 (from BuildTools-1.8.20141228.jar)
- Fixed incorrect oldLL to use oldLLt
Installation
- Download the plugin
- Place it in your 'plugins' directory
- Create a file called 'PortableLight.properties' in your 'plugins' (please note that the torch also needs to be added to the 'AllowedMaterials' inside the properties file!)
- Start your server
- Now the plugin is ready to use (no configuration needed!)
- You can un-/register items by changing the 'AllowedMaterials' property in './plugins/PortableLight.properties' ( - all material names are seperated by a comma ( , )).
- You can un-/register items by accessing the API programmatically through the 'PortableLight' class ( - remember to add PortableLight as a dependency in your 'plugin.yml'). Included methods:
- .registerMaterial(Material material) - - Register new material
- .registerMaterials(Material... materials) - - Register new materials
- .unregisterMaterial(Material material) - - Unregister registered material
- .unregisterMaterials(Material... materials) - - Unregister registered materials
- .isMaterialRegistered(Material material) - - Determine if a material is registered
Quote from an exmaple PortableLight.properties:# List of materials that will illuminate (seperated by commas; whitespaces are ignored), e.g. # AllowedMaterials=<MATERIAL>,<MATERIAL> AllowedMaterials=TORCH,GLOWSTONE_DUSTYou can find a list of all available materials here.
Media
Youtube Video:
Suggestions?
- I'm happy about every suggestion :)
Bugs
- The current version might have bugs, because it uses an untested method to determine the lightlevel, which causes a framedrop on the client
- The current version produces an error when there is no PortableLight.properties file inside the './plugins' directory and creates a folder named 'PortableLight.properties' instead. Fix: Create the PortableLight.properties file manually (i.e. touch ./plugins/PortableLight.properties in the server root directory)
- No other bugs at the moment
下载 PortableLight
下载 PortableLight
下载 PortableLight
下载 PortableLight
下载 PortableLight
下载 PortableLight
下载 PortableLight
下载 PortableLight
Release | CB-1.7.2-R0.3 | PortableLight-v1.0.jar
- 使用 lightblocks 添加了火把光效
- 为光块变更添加了 Packagesender
Release | CB-1.7.2-R0.3 | PortableLight-v1.1.jar
- 添加了权限 'portablelight.use',允许用户将火把作为便携光源使用
Release | CB-1.7.2-R0.3 | PortableLight-v1.2fx.jar
- 对移动检测进行了小幅修复
- 减少了 v1.0 和 v1.1 版本中的卡顿
- 准备了卡顿修复方案
Release | CB-1.7.9-R0.1 | PortableLight-v1.3a.jar
- 提升了光照等级变更的性能(500ms, 5t-llc-check)
- 采用了新的区块更新方法(现在使用 w.refreshChunk())
Release | CB-1.7.9-R0.2 | PortableLight-v1.3b.jar
- 重写了光照计算算法
- 添加了 TLocXYZLL 类以按“玩家”存储火把数据
- 从 Bukkit.getScheduler 升级为 BukkitRunnable.runTaskTimerAsynchronously
Release | CB-1.7.9-R0.2 | PortableLight-v1.3c.jar
- 再次重写了光照计算算法
- 重写了完整的更新代码
- 移除了用于按“玩家”存储火把数据的 TLocXYZLL 类
- 更改了任务管理,改用 java.util.Timer 来调度更新
- 修复了 OOM(内存溢出)错误
- 修复了 RLS(移除光源)错误
- 修复了 UTO(更新传输过载)错误
Release | CB-1.7.9-R0.2 | PortableLight-v1.3d.jar
- 将 c.initLighting() 移出 TLocXYZLL 进度循环
Release | CB-1.7.10-R0.1-20140817.180155-16.jar | PortableLight-v1.4a.jar
- 完全重写了插件代码
- 添加了基本的 API,用于添加/移除发光物品
- 添加了配置文件 'plugins/PortableLight.properties',用于添加/移除发光物品(使用列表 'AllowedMaterials' 定义物品)
- 注意:由于 dev.bukkit.org 的问题,此版本尚未发布。
Release | CB-1.8-R1 | PortableLight-v1.5a.jar
- 更新至 1.8 版本(源自 BuildTools-1.8.20141228.jar)
- 修复了 incorrect oldLL 应使用 oldLLt 的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧