promotional bannermobile promotional banner

CityLanterns

A plugin for toggling redstone lanterns at day/night

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.

The CityLanterns Team

profile avatar
  • 3
    Projects
  • 25.3K
    Downloads

More from _ForgeUser8945898

  • flyingblocksapi project image

    flyingblocksapi

    • 2.1K
    • Bukkit Plugins

    API for developers to create flying and moving blocks

    • 2.1K
    • April 26, 2014
    • Bukkit Plugins
  • itemtrader project image

    itemtrader

    • 4.0K
    • Bukkit Plugins

    Trade between players like with villagers

    • 4.0K
    • February 13, 2014
    • Bukkit Plugins
  • flyingblocksapi project image

    flyingblocksapi

    • 2.1K
    • Bukkit Plugins

    API for developers to create flying and moving blocks

    • 2.1K
    • April 26, 2014
    • Bukkit Plugins
  • itemtrader project image

    itemtrader

    • 4.0K
    • Bukkit Plugins

    Trade between players like with villagers

    • 4.0K
    • February 13, 2014
    • Bukkit Plugins