[INFO] Announcer 0.5 - display a message periodically [766]

Discussion in 'Inactive/Unsupported Plugins' started by Haerar, Feb 11, 2011.

  1. Offline


    Version: v0.5
    This is my first plugin - it allows server owners to write their own announcements in the file "Announcements.txt", which will be displayed at random every 2 minutes.

    • Capability to add and alter custom announcements.
    • Announces a random one of these announcements server-wide every X minutes - you get to choose whatever X is ;) - that said, please use integers (whole numbers). I will add support for Floats (partial numbers like 1.5) later.

    Version 0.5

    • Compatibility issues fixed - sorry it took a while!
    Version 0.4
    • Various Bug Fixes
    Version 0.3
    • Now supports custom delay on announcements - you can set this in the first line of the Announcements.txt file.
    • Removed on-the-fly announcement alteration - was necessary to get custom delay, but will be fixed in the next release
    Version 0.2
    • Updated to non-testing version - so no message spam now.
    • Fixed issue where on VERY rare occasion the plugin would attempt to read a non-existent line. Less common the more lines in the Announcements file - but fixed now. :)
    • Removed an unnecessary line in the OnEnable.
    • Credited @eisental :)
    Version 0.1
    • Custom Announcement Support
    • Announcements set to every 2 minutes
    Intended Features:
    • Customisable message colour
    • Capability to disable/enable the announcements using commands
    Any ideas for improvements on this one are welcome, so please feel free to criticise and suggest!

    Note: Extract the entire contents of the .zip into your plugins folder! Otherwise, it will notify you in-game that the announcements file doesn't exist! :p
    EDIT: Now updated - it will now force a frequent announcement of the missing file (30 seconds between each), and actually do that.

    Attached Files:

  2. Offline


    you need to use plugin.yml in /src

    drop by irc, mixx is the name if you want help :)
  3. Offline


    My plugin.yml is in the new format suggested by Bones himself, so idk what else could be goin wrong :confused: - and yes it's in the src...

    name: Announcer
    main: com.bukkit.Haerar.Announcer.Announcer
    version: 0.4
    website: none
    author: Haerar
    description: Announces things
    No commands as of yet... but it should be working, afaik?
  4. Offline


    Can someone fix this to work with new version of craftbukkit?
  5. Offline


    Does not work with #493b
  6. Offline


    I'm aware of this, it hasn't been working since the posts before - that question was aimed at any developers who could see something wrong with the Plugin.yml >_>

    Unfortunately college work has kept me busy but if I get some spare time i'll let you know if i've fixed it.
  7. Offline


    Updated at last - found the problem. It wasn't my plugin.yml, and so I had been looking in the wrong place the entire time! Anyway, Uploading the new version now.
  8. Offline


    very nice thanks! is it possible to make the messages colored?so im using i chat.

    i do


    would that be correct?^^^^
  9. Offline


    Can you add permission, So lets say I had the message going off for a Unpaid groups and the message said 5 dollars for a higher group. And if they do but it and move to a diffenerent group it shouldn't pop up for the group...
    Can you do this
  10. Offline

    Ryan Fuller

    For some reason i am getting an error please help
    im running build 556 and i am on a mac
    Could not load plugins/Announcer.jar in plugins: null
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:113)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    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.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
    ... 8 more
  11. Offline


    This would be sending messages to individual players rather than the broadcast system I have in place - it'd be a complete rewrite, essentially. I'll consider it.

    Ryan, I don't have a Mac so I'm not sure what's going on there - I'll take a look into it.

    Chernobyl - please read "intended features". I fully intend on adding coloured text as an option

    EDIT - Ryan, I'm not getting that error on the latest windows version, and since I don't have a Mac to work with I'm not sure I can fix this one for you.

    If any mac developers wander by here, I'd appreciate a pointer or two :p
  12. Offline


    change the number at the of the file from 1 to like 5
  13. Offline


    I installed it, great consept! But, hey.. The colour dont work! And the its not possible to jump down a line..
    My announcement is like this:

    &4 Noticed a Griefer? Use the /tell command to write to an admin!
    &1 Type /rules to read the rules!
    &a Play fair!
    The 2 downer lines dissapear, and the colour dont work..

  14. Offline


    Please read the posts above: I have not implemented coloured text yet, it is in intended features not current ones.

    Chances are the reason it's not working is due to some issue with the & symbol, unless that's not what you're getting at :confused: Could you post in more detail?
  15. Offline


    Nah, I figured it out, and edited the mod, so that I now can have coloured text. Thanks :D!
  16. Offline


    Awesome, good job Sondre :) If it's not too much trouble could you throw a bit of your code my way? Would help alot >.< I've looked at iChat's code briefly and its left me very much confused.
  17. Offline


    How did you get colored text to work?
  18. Offline


    Oh, did not see this post..
    I found the Announcer useless, p.g.a it messes up the chat.
    But I may download again, then change the code, and send it to you!
  19. Offline


    Hi there, i would like to use this plugin, but! please let me choose the interval time (maybe even per message?) And just wondering is this compatible with #617?
  20. Offline


    Yes is does nanashi. I am also curious if it works with 617.
  21. Offline


    god we're onto 617 already? I'll test it :)
    Also Nanashi - it already has custom interval times - albeit not per message. I'd need to rewrite a lot of the code to enable that.... also, why would you need intervals for different messages? surely you wouldn't want more than 1 appearing at once?

    EDIT: erm, seems I can't actually get a hold of the latest build... download is dead?
  22. Offline


    How do colours work?
    Quote my post.
  23. Offline


    Colours are currently not supported in this version of the plugin, as stated in previous posts. I fully intend on adding this at a later date however with the backlog of coursework I have at the moment, it'll be a while in coming.

    EDIT: Fully functional with the Bukkit API as of build 684 on 19/04/2011
  24. Offline


    awesome ;)
  25. Offline


    Loving the plugin, well done Haerar. Cant wait for colors. You still working on this?
  26. Offline


    Is there a way to make messages appear at different times? Like if I wanted message A to appear every 5 minutes but message B every 2 minutes? If not, please do add this feature! Good luck! :)
  27. Offline


    I love this plugin! But it would be nice if you could add colors to the announcements.
    eg. &1-10 Thanks for this great plugin though! =]
  28. Offline


    For some reason when it plays the message it will appear in the consol but not on the chat...

Share This Page