[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

    user_2408

    With CB 531:

    Code:
    2011-03-13 01:27:36 [SEVERE] au/net/fremnet/libs/bukkit/Copyright loading TimeAnnounce v1.0 (Is it up to date?)
    java.lang.NoClassDefFoundError: au/net/fremnet/libs/bukkit/Copyright
            at au.net.fremnet.bukkit.TimeAnnounce.TimeAnnounce.onEnable(TimeAnnounce.java:108)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: au.net.fremnet.libs.bukkit.Copyright
            at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
            ... 11 more
    
     
  3. Offline

    freman

    Sorry, my fault - had the build directory set to my drop box - brb, will fix
    [MERGETIME="1299998514"][/MERGETIME]
    should be working now, please re-download and try again
     
  4. Offline

    Waffletastic

    Could you update this to say the date that it is?
     
  5. Offline

    freman

    Don't need to, just make a date format.
     
  6. Offline

    Josh Harwood

    can you possibly get a multi sign clock? for large clock towers you'd have a like 5x5 set of signs that the time is shown on in ascii
     
  7. Offline

    freman

    Ummm no that's not on the cards.
     
  8. Offline

    SecondAlias

    Hey, can you make it so that, whenever the server announces the time, I can choose what color it is announced in?
     
  9. Offline

    LegendOne

    thank you for this plugin, i hope you find a way to place signs next to each other.
     
  10. Offline

    user_2408

    Working fine with CB559.
     
  11. Offline

    Jandalf

    new CB 561 error:
    Code:
    2011-03-23 17:35:07 [SEVERE] BLOCK_RIGHTCLICKED loading TimeAnnounce v1.0 (Is it up to date?)
    java.lang.NoSuchFieldError: BLOCK_RIGHTCLICKED
        at au.net.fremnet.bukkit.TimeAnnounce.TimeAnnounce.onEnable(TimeAnnounce.java:127)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:453)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:203)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:190)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:130)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:245)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  12. Offline

    freman

    I'll try to look at it tonight but it'll probably be the weekend before I get a chance...

    Why do the bukkit team insist on pushing changes that break the greatest number of plugins and usually with next to no warning... how about a period of deprecation or warning a week in advance...
     
  13. Offline

    Jandalf

    k thanks, ill downgrad for the time.

    because its a alpha project...
     
  14. Offline

    freman

    I won't upgrade this until there is a newer recommended build
     
  15. Offline

    freman

    Update is out.
     
  16. Offline

    angus22397

    Thanks for putting zan's map in your sig =D
     
  17. Offline

    clearwolves

    what about an option to display 12/hr or 24/hr ?
     
  18. Offline

    freman

    Set the format in the config
     
  19. Offline

    ErMurazor69

    Any way you can setup this plugin to not show in the server window or at least not brodcast the time when no one is online. its always full of "current time is" when I get up in the morning and no one has been on all night.
     
  20. Offline

    Plague

    considered inactive
     
  21. Offline

    Don Redhorse

    @freman are you still working on this?
     
  22. Offline

    chernobyl360

    yea you should see if you could update this :D. this plugin was very handy
     
  23. Offline

    Liger_XT5

    was? It still is. I'm running 766 and all I use it for is the on half hour time announcement.
     
  24. Offline

    freman

    I've added a configuration variable to disable logging to console.

    Code:
    Log-To-Console=false
    Will prevent logging to console.
     
  25. Offline

    David B.

    Hey, great plugin. Sorry if this is a dumb question answered somewhere else. A quick read through the thread didn't help.

    Can the /thetime command and the announcement be configured to show game time? Mine always shows current local time.

    Thanks!
     
  26. Offline

    Don Redhorse

    atm I don't think so, you can have sign with gametime though
     
  27. Offline

    firewalled

    I found this plugin, and was hoping /thetime showed game time, as I find that more useful in the game than real time (you can usually see that on your computer anyways!). Nice idea with ingame signs with real time or game time - but announcement and /thetime with game time would be awesome.
     
  28. Offline

    WaferMouse

    Great plugin! Would it be possible to support the gametime from other worlds? It'd be fantastic to have a bunch of signs as a kind of "world clock" near my hub teleporter :)
     
  29. Offline

    Don Redhorse

    hmm it doesn't announce the time on the server... /thetime works.. I'm using herochat and cb 766
     
  30. Offline

    fuzzycut

    Do s
    Do signs work again? They broke an update or 2 ago, and didnt work very well. It was a sad day for me :(
     
  31. Offline

    freman

    Signs were never broken on my test server, however, I did break the announcer thread, I'll have to do something about that this weekend.

    It could be possible...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 7, 2016

Share This Page