Skip to content

CityLanterns Plugin for Minecraft

A plugin for toggling redstone lanterns at day/night

views
16 views
Updated
Updated 18.10.2026

    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:

    • 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.

    How to install CityLanterns

    1. A server on Paper or Spigot

      The plugin runs on the server core; players do not need to install anything.

    2. File goes into the plugins folder

      Download the file CityLanterns-2.1.1.jar (54 KB) and put it into the server’s plugins folder.

    3. Restart the server

      On startup the plugin creates its own settings folder in plugins.

    4. Use the “To server” button

      On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.

    Versions

    With dependencies

    MinecraftLoaderFileDateActions
    ——CityLanterns-2.1.154.1 KB
    ——CityLanterns-2.0.338.9 KB

    FAQ

    Do players need to install CityLanterns?

    No, the plugin goes only on the server, into the plugins folder: players do not need to download anything.

    Where can I download CityLanterns safely?

    On this page: the file CityLanterns-2.1.1.jar (54 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: f51035b0c3963165af10f9d209381fa3390773f1.

    Reviews

    Be the first to rate CityLanterns

    Comments 0

    Sign in to commentSign in

    Similar plugins

    All plugins

    More on this