描述
此插件允许不同组的红石灯在不同(游戏内)时间开关,例如在日落时组 A 的灯笼会打开,而组 B 的灯笼会在午夜打开。
灯笼选择 / 教程
要修改哪些灯笼属于哪个组,请执行 /citylanternsselect 或 /citylanternsselect <group>(如果不指定组,将使用 "main"),你的物品栏中将添加一个工具。然后你可以用该工具右键点击红石灯以检查其所属的组,或左键点击以将该灯笼添加/移除到该组中。将一个灯笼添加到新组后,你可以在配置文件中更改该组的设置。然后等待夜晚来临,看着它们依次亮起吧 :D
配置文件
有关包含键定义的默认配置文件,请参阅 此处。
命令 & 权限
- /citylanternsselect|cls [<group> [new|we]]
-
要么给予(如果未提供 new 则替换)一个用于向组 <group> 添加/移除灯笼的工具(如果不提供,将设置为 'main'),或者,如果提供了 we 参数,则将当前选定的 WorldEdit 区域中的所有灯笼的组设置为 <group>。
权限名称为 citylanterns.select(操作员默认拥有)
- /citylanternsgroups|clg [<group>]
-
列出所有组,或者如果提供了 <group>,则显示该组的详细信息。
权限名称为 citylanterns.groups(操作员默认拥有)
- /citylanternssettings|clsetting [<group>] day|night|thunder <number>|true|false
-
为组 <group> 设置配置属性,如果不提供则为 main。
权限名称为 citylanters.settings(操作员默认拥有)
- /citylanternsreload|clr [force]
-
重新加载所有灯笼和组设置。如果提供了 force,这将丢弃所有数据并从存储中重新加载。
权限名称为 citylanterns.reload(操作员默认拥有)
(对于版本 <= 1.8.1 的命令,请参阅 此处)
更新日志
v2.1.1:
- 更新至 CraftBukkit 版本 1.7.9-R0.2
v2.1:
- 添加了重载命令
- 更改了选择命令
- 为灯笼和组添加了更多存储选项
v2.0.3:
- 添加了 /citylanternssettings 命令
- 修复了组问题
- 更快的方块更新
v2.0.2:
v2.0.1:
v2.0:
- 完全重写命令系统
- 现在通过工具进行选择
- 能够形成具有不同设置(开/关/雷暴)的灯笼组(灵感来自 fov360)
- WorldEdit 钩子,用于设置 WorldEdit 选中区域内所有灯笼的组
v1.8.1:
- 插件加载后加载自定义世界会导致灯笼重载,以修复一个错误
- 修复了灯笼被破坏时的错误
v1.8:
v1.7:
- 更新至 Bukkit 1.5.2
- 离玩家较近的灯笼将比离玩家较远的灯笼先切换状态。想法由 dab1983 提出。谢谢
v1.6:
- 将兼容性版本从 1.7 改为 1.6,以保持 Bukkit 标准。
- 更新至 CraftBukkit 版本 1.5.1-R0.1。
v1.5:
- 在切换灯笼状态之间添加了延迟以防止卡顿。想法来自 John290。谢谢。
v1.4:
v1.3:
- 添加了由 提供的插件指标提交功能
- 修复了启动时未创建配置文件的错误。由 mcferson 报告。谢谢。
v1.2:
- 添加了在下雨/打雷时切换红石灯的功能。
- 修复了无法移除亮着的灯笼的错误。
v1.1:
统计收集
此插件会自动仅出于统计目的向 MCStats 发送信息,具体包括(引用自 )
- 实现类的指标修订版
- 服务器 GUID 用于标识服务器的随机生成 ID
- 当前在线玩家数量(非最大玩家数)
- 服务器版本字符串(与你在 /version 命令中看到的一致)
- 支持指标的插件的版本
要禁用数据收集,您可以在 plugins/PluginMetrics/config.yml 中将 opt-out 设置为 true。
收集的数据可以在 MCStats 项目页面 上供所有人查看。
源码
源码可在 GitHub 找到。

Description
This plugin let selected redstone lanterns of different groups switch on/off at differeren (ingame) times, e.g. at sunset lanterns of group A will toggle on while lanterns of group B will toggle on at midnight.
Lantern Selection / Tutorial
To modify which lanterns belong to which group, do /citylanternsselect or /citylanternsselect <group> (If you do not specify a group, "main" will be used), a tool will be added to your inventory. Then you can right-click a redstone lantern with that tool to check which group that lantern belongs to, or left-click to add/remove the lantern to/from the group. After one lantern is added to a new group, you can change the settings of that group in the config. Then wait for the night and see them switching on :D
Config
For a default config with key definitions, see here.
Commands & Permissions
- /citylanternsselect|cls [<group> [new|we]]
-
Will either give (or replace if new is not given) a tool for adding/removing lanterns to/from the group <group> (Will be set to 'main' if not supplied) or, if the we argument is given, sets the group of all lanterns to <group> in the currently selected WorldEdit region.
Permission name is citylanterns.select (default for ops)
- /citylanternsgroups|clg [<group>]
-
Lists all groups or, if <group> is given, shows detailed information about that group.
Permission name is citylanterns.groups (default for ops)
- /citylanternssettings|clsetting [<group>] day|night|thunder <number>|true|false
-
Sets config properties for a the group <group>, or main if not supplied.
Permission name is citylanters.settings (default for ops)
- /citylanternsreload|clr [force]
-
Reloads all lanterns and group settings. If force is supplied, this will discard all data and load them from the storage.
Permission name is citylanterns.reload (default for ops)
(For commands in version <= 1.8.1, see here)
Changelog
v2.1.1:
- Updated to CraftBukkit version 1.7.9-R0.2
v2.1:
- Added Reload command
- Changed Select command
- Added more storage options for lanterns and groups
v2.0.3:
- Added /citylanternssettings command
- Fixed groups
- Faster block updates
v2.0.2:
v2.0.1:
v2.0:
- Complete command rework
- Selection now by tool
- Ability to form groups of lanterns with different settings (on/off/thunder) (inspiration from fov360)
- WorldEdit hook to set group of all lanterns in the WorldEdit selection
v1.8.1:
- Custom worlds loaded after the plugin will cause a lantern reload to fix a bug
- Fixed bug when lanterns are destroyed
v1.8:
v1.7:
- Updated to Bukkit 1.5.2
- Lanterns which are closer to players will be toggled before lanterns which are farer to players. Idea by dab1983. Thx
v1.6:
- Set the compilance version from 1.7 to 1.6 so that the Bukkit standards are kept.
- Updated to CraftBukkit version 1.5.1-R0.1.
v1.5:
- Added a delay between toggling the lantern states to prevent lags. Idea from John290. Thx.
v1.4:
- Fixed bug lanterns will start flickering rapidly when weather changes. Reported by TheMisterB. Thx.
v1.3:
- Added plugin metrics submit provided by
- Fixed bug config files were not created on startup. Reported by mcferson. Thx.
v1.2:
- Added the function to toggle the redstone lanterns if it's raining/thundering.
- Fixed bug being unable to remove lanterns wich are on.
v1.1:
- Initial version with compatibility to CB 1.4.7-R1.0.
Stats Collection
This plugins automatically sends information for statistic purposes only to MCStats, specifically (quoted from )
- Metrics revision of the implementing class
- Server's GUID A randomly generated ID to identify the server
- Players currently online (not max player count)
- Server version string (the same version string you see in /version)
- Plugin version of the metrics-supported plugin
To disable data collection, you can set opt-out to true in plugins/PluginMetrics/config.yml.
The collected data can be seen by everyone at the MCStats project page.
Source
Source can be found at GitHub.

评论 0
登录后参与评分
还没有评论,来抢沙发吧