[INACTIVE][INFO] TimeAnnounce v1.5 - Hourly time announcements, ClockSigns [1000]

Discussion in 'Inactive/Unsupported Plugins' started by freman, Jan 29, 2011.

  1. Offline


    TimeAnnounce - Hourly time announcements:
    Version: v1.5

    Players on my server found that we were easily losing track of time so I created this simple plugin (it's actually based apon a plugin requiest I made for hMod - I've ported it and given it more features) to tell us the time every hour

    • Signs close to each other now all update
    • Tells the time when configured to
    • A player can check the time with /thetime
    • Sign Clocks! Just make a sign with [CLOCK] on the first line and right click the sign
    • Sign clocks can display time in a different timezone, or even "game time"
    • Supports custom time formats and message formats
    • Basic timezone support - time displayed can be different from that on the actual server
    • Sign clocks work on any and all worlds


    • Split the "game" and "real world" clocks into different task schedulers
    • Player alarms?
    • Permissions support?
    Download TimeAnnounce (Version 1.5 for RB 1000)

    How to use:
    1. Create a sign, it can be a sign post - or a wall sign
    2. Set the first line to [CLOCK]
    3. (optional) Set the last line to GAME or [GMT+10:00] (+ can be a -, 10:00 can be any zone)
    4. With any tool, right click on the clock *
    * optional now, if the server admin has configured Right-Click-Enable=false then the sign will activate by it's self

    • Update-Rate=250 - The number of milliseconds between each clock update (if you're not using game clocks feel free to increment to 1000 (range: 50 - 1000)
    • Game-Clock-Resolution=5 - The number of minutes to tick at a time on game clocks, lower resolutions might require you to make Update-Rate lower (1-15 - at 10+ you can set Update-Rate to 1000)
    • Date-Format=HH\:mm - The format used to display the time in the server broadcast
    • Sign-Date-Format=HH\:mm - The format used to display the time on signs
    • Announce-Format=Current time is\: %s - The format of the broadcast message %s becomes the time - Colors should work.
    • Right-Click-Enable=true/false - if true then signs will require right clicking to activate (the old way) if false then signs will activate automatically
    • Announce-At=00,05,10 - the minutes of the hour to announce at (must be 2 numbers)
    • Log-To-Console=true - set to false and you wont' have any time announcements in console
    Version 1.5
    • Significant code refactor (not a complete re-write... not yet)
    • Configure most sign parameters (formatting, timezone) on boot instead of reading and parsing each sign at every clock tick (should make things smoother no? :))
    • Split the clock scheduler away from the announce scheduler
    • Schedule all sign updates to correspond with server ticks (it takes 200 ticks to update 100 signs but shouldn't cause any lag)
    • The above scheduling change means you can put signs right next to each other!
    • Yes 1.3 & 1.4 are missing, they never existed this was such a big change in the code base it warranted a half version update
    Version 1.2
    • Added option Log-To-Console
    Show Spoiler

    Version 1.1
    • Updated to latest craftbukkit - it wont work for previous builds
    Version 1.0
    • Updated to latest craftbukkit - it'll probably work for the previous few builds
    • Added the option to auto-enable signs
    • Added option for setting which minutes to announce at
    Version 0.9
    • Updated to build 405 - it will probably work on older builds but I won't make any promises.
    Version 0.8
    • Fixed issue breaking announcements after the first hour
    Version 0.7
    • Updated for build 304 of bukkit (will probably work in older versions still but I wouldn't take it back before say 250)
    • Fixed the math (or rather operator precedence) used to calculate times at lower resolutions (made time fly at a resolution of 5)
    • Cleaned up the onBlockPlace prevention code - was causing issues where you couldn't place blocks for several clicks after the sign was activated.

    Alcohol makes coding in Java more fun, Caffeine makes it possible to do after a day of coding in other languages at work - both of these habits are expensive - Want to help me feed my addictions and make more, better plugins faster? Consider hitting the button below.
  2. Offline


    also what can ui use for time zon format. followed link in config takes me to wordpress site unrelated
  3. Offline


    ok so i made it rightclicked it. it says created butttt.........

    Attached Files:

  4. Offline



    Just trying out your mod and I think it is awesome so far - simple and effective. I like having both the sign and the announcement.

    I tried putting a color code in front of clock and the gmt line and it makes them very visible at night (using the mod 'Signcolours') but I can't find a way to make the actual time colored. Can you add the ability to put color codes either on the sign itself or in the properties file?
  5. Offline


    time zone format???????????
  6. Offline


    Any exceptions in your log?

    You can put colors in your time format in the config (Sign-Date-Format)
  7. Offline


    no. wait little update. if i reload server they work again. so they just stop working for no reason sometimes?
  8. Offline


    They shouldn't, they should be more stable now than ever.
  9. Offline


    sorry to burst ur bubble ten :)
  10. Offline


    Can you please show me an example of the syntax, because I tried that and apparently did it wrong. :(
  11. Offline


    BEAST :X::X:X:X:XX:X
  12. Offline


    sometimes when you define a new clock and want to create it with right click... the time doesn't show up and ALL the clocks on the server stop until server restart.
  13. Offline


    Sounds like the thread crashed... will look at it.
  14. Offline


    That would be very appreciated. Our docks, minecart stations, multiple mine excavations, each players home ... many many clocks... I wouldn't be suprised to see a Freman - God of Time statue on our server, that way my users need and depend on your plugin xD
    jeanjaz likes this.
  15. Offline


    I'm working on this again. No one answered me on the syntax for making the actual time on the signs in a different color. I've tried, among other trials,
    and none of them work.

    Please give me an example of how to add color to this line.

  16. Offline


    I'm having a problem with my signs being the same time zone no matter what time zone I set them to be. I've done them the way you show in the vid. Any ideas?
    I got them fixed by stopping the server (I probably could have just edited and restarted it, but I prefer to stop) and edited the config file so that right-click -enabled was true (had been false) and the signs worked.
    You might want to look into that.
  17. Offline


    Hmmm interesting... thanks I will.
  18. Offline

    Don Redhorse

    are you still updating this plugin?
  19. Offline


    This is broken in 1.2.3, please update!
  20. Offline


    Please update, very nice plugin! 1.2.3

Share This Page