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

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

  1. Offline

    freman

    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

    Features:
    • 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
    Screenshot:

    [​IMG]
    Video:


    Plans:
    • 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

    TimeAnnounce.properties:
    • 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
    Changelog:
    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.


    Support:
    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.
    [​IMG]
     
  2. Offline

    Buckethead

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

    Buckethead

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

    Attached Files:

  4. Offline

    jeanjaz

    Freman,

    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

    Buckethead

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

    freman

    Any exceptions in your log?

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

    Buckethead

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

    freman

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

    Buckethead

    sorry to burst ur bubble ten :)
     
  10. Offline

    jeanjaz

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

    radu97theone

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

    Silvo

    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

    freman

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

    Silvo

    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

    jeanjaz

    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,
    Sign-Date-Format=&f(HH\:mm)
    Sign-Date-Format=&f[HH\:mm]
    Sign-Date-Format=white[HH\:mm]
    and none of them work.

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

    Thanks!
     
  16. Offline

    ShadowHawk54

    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?
    [EDIT]
    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

    freman

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

    Don Redhorse

    are you still updating this plugin?
     
  19. Offline

    Royalgamer06

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

    Ozelo

    Please update, very nice plugin! 1.2.3
     

Share This Page