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 Nov 14, 2013@MysticCity
Nice! :D
-
View User Profile
-
Send Message
Posted Nov 12, 2013Okay thx for the info. I have tested it... and it works atm juhu i love this plugin.
ATM we use this for 6322 Lamps.
-
View User Profile
-
Send Message
Posted Nov 12, 2013@MysticCity
I'm quite sure that version 2.0.1 will work with Bukkit 1.6.2 too, this will fix the issue! :D
-
View User Profile
-
Send Message
Posted Nov 12, 2013no i use R: CityLanterns-2.0 for CB 1.6.2-R1.0 because we use Craftbukkit v 1.6.2.r1.0
-
View User Profile
-
Send Message
Posted Nov 11, 2013@MysticCity
Please, can you check if you are using version 2.0.1?
-
View User Profile
-
Send Message
Posted Nov 11, 2013same problem here
yes i use the Tool
-
View User Profile
-
Send Message
Posted Sep 22, 2013@iTeush
Did you used the tool with the "Lantern Selection Tool for group '...' " title?
-
View User Profile
-
Send Message
Posted Sep 22, 2013With the tool :/
-
View User Profile
-
Send Message
Posted Sep 22, 2013@iTeush
Did you clicked the lanterns with the tool you got from /citylanternsselect or with another one?
-
View User Profile
-
Send Message
Posted Sep 21, 2013I have the same issue Poet68 :/
-
View User Profile
-
Send Message
Posted Sep 20, 20132013-09-21 04:35:16 [SEVERE] Could not pass event PlayerInteractEvent to CityLanterns v2.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:190) at net.minecraft.server.v1_6_R2.PlayerInteractManager.interact(PlayerInteractManager.java:373) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:628) at net.minecraft.server.v1_6_R2.Packet15Place.handle(SourceFile:58) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Unknown Source) at java.util.regex.Matcher.reset(Unknown Source) at java.util.regex.Matcher.<init>(Unknown Source) at java.util.regex.Pattern.matcher(Unknown Source) at me.ase34.citylanterns.listener.LanternSelectListener.onPlayerInteractBlock(LanternSelectListener.java:35) at sun.reflect.GeneratedMethodAccessor210.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 16 more
-
View User Profile
-
Send Message
Posted Aug 31, 2013@Soldadosteam
Sorry, but it seems I didn't have done enough testing before uploading so there are too many bugs in v1.9, like yours. I have deleted the file now and sorry for the inconvenience.
-
View User Profile
-
Send Message
Posted Aug 31, 2013When i write /selectlanterns or /sl
dont toggle the select mode,says /sl [grou]
What is that?
-
View User Profile
-
Send Message
Posted Aug 26, 2013@fov360
Definitely worth thinking about it, thx for your suggestion!
-
View User Profile
-
Send Message
Posted Aug 26, 2013Maybe as a suggestion: would it be possible to have several selections like sel1 / sel2 and so on? This way one could define sets of lanterns which turn on/off at different times.
-
View User Profile
-
Send Message
Posted Aug 26, 2013@fov360
Thx for your feedback! That bug really needed to be fixed. ;)
-
View User Profile
-
Send Message
Posted Aug 26, 2013I have installed your plugin a while ago on our server. But as we were using it on a custom world which is unloaded when it's empty it didnt work properly in older versions.
The latest update solves it all, no more broken lanterns, everything works just fine, no matter if the world is unloaded/reloaded or the server was restarted. It is a great addition to the gameplay! Thank you!
-
View User Profile
-
Send Message
Posted Aug 25, 2013Hahaha, this is too funny. I just implemented a bunch of automated street lights for my server. It uses a daylight sensor. If you'd like to see it, it is in /warp battlelands
-
View User Profile
-
Send Message
Posted Aug 15, 2013@WsupPanda
Thx! Does your server has any other worlds than the default ones (world, world_nether, world_the_end)?
-
View User Profile
-
Send Message
Posted Aug 15, 2013Heres the error log..
http://pastie.org/8238533