CityLanterns
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
newis not given) a tool for adding/removing lanterns to/from the group<group>(Will be set to 'main' if not supplied) or, if theweargument 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>, ormainif not supplied.Permission name is
citylanters.settings(default for ops) - /citylanternsreload|clr [force]
-
Reloads all lanterns and group settings. If
forceis 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:
- Updated to CB 1.7.2
v2.0.1:
- Updated to CB 1.6.4
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:
- Updated to 1.6.2
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 http://mcstats.org/
- 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 https://forums.bukkit.org/threads/mcstats-plugin-metrics-r7-easy-advanced-plugin-statistics.77352/)
- 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.

-
View User Profile
-
Send Message
Posted Mar 5, 2013New version fixing a severe bug is out. Please update your Plugin by replacing the JAR with the new one. Sorry for that trouble.
PS: THX for 500+ downloads
-
View User Profile
-
Send Message
Posted Mar 5, 2013@TheMisterB
I'll check that, I hope I can fix that and sorry for that issue. ;)
-
View User Profile
-
Send Message
Posted Mar 4, 2013For some reason the lanterns will start flickering rapidly when weather changes, causing severe FPS lag for anyone nearby. Changing the setting in the config doesn't help. Any ideas why?
-
View User Profile
-
Send Message
Posted Feb 28, 2013nice plugin :) thanks :)
-
View User Profile
-
Send Message
Posted Feb 28, 2013Can you add a setting for inside lamps for like caves and stuff? If a player comes near one, it will turn on then turn off after a certain amount of time!
-
View User Profile
-
Send Message
Posted Feb 28, 2013@mcferson
Very, very sorry for that bug. I just fixed it and the fixed file will be donloadable soon, meanwhile you can download the config from here and put it in /plugins/CityLanterns/config.yml
Again, very sorry for this bug
-
View User Profile
-
Send Message
Posted Feb 25, 2013Well, is there any config file anywhere ? such as "config.yml" ? Because i see nothing, so nowere tu use "lamps_on_thundering: true".
-
View User Profile
-
Send Message
Posted Feb 22, 2013@ase34
I did not now that... O.O
-
View User Profile
-
Send Message
Posted Feb 22, 2013@mastalol
Nope sorry, at least not in this plguin but maybe in I'll create a new plugin for that. But remember, 1.5 comes soon and this includes daylight detectors :D.
PS: THX for 250+ downloads :D
-
View User Profile
-
Send Message
Posted Feb 22, 2013Couldn't you make it power redstone?
if not could you possibly look into making a light detector type thing so that at night it turns redstone power on, and during the day it turns it off.
Example
http://dev.bukkit.org/server-mods/lightdetector/
-
View User Profile
-
Send Message
Posted Feb 19, 2013-
View User Profile
-
Send Message
Posted Feb 18, 2013Awesome! I can finally get rid of StreetLights. Thank you ase34 :)
-
View User Profile
-
Send Message
Posted Feb 14, 2013@HeartStolen
Yes, this plugin is built against Bukkit (and happily not against CraftBukkit), so there should be no problems running this plugin on 1.4.6. If it doesn't please let me know.
PS: THX for 100+ downloads
-
View User Profile
-
Send Message
Posted Feb 11, 2013would this work on a v 1.4.6 R.3 server?
-
View User Profile
-
Send Message
Posted Feb 9, 2013@3ptO
Nope, they're not protected, I expected that they will be protected by an external plugin (for example WorldGuard), but maybe I'll add this as an optional feature in the next release.
-
View User Profile
-
Send Message
Posted Feb 7, 2013Sweet, thanks.
Are the lanterns protected?
-
View User Profile
-
Send Message
Posted Feb 3, 2013Juhu.... an Updatet Version of StreeLights I Love You
-
View User Profile
-
Send Message
Posted Feb 2, 2013awesome idea :)