[INFO/CHAT] Announcer v1.2.0 - Automaticly announce messages [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Quick_Wango, Aug 10, 2011.

  1. Offline

    Quick_Wango

    Thread outdated!



    Announcer - Automaticly announce messages!
    Version: v1.1.0

    Announcer loads small text files and broadcasts them in a configured interval.

    Features:
    • Announce txt files automaticly to the server
    • Announce files manually
    • Supports color codes (&0, &1, &3, ...)
    • Interval can be set in Ticks, Seconds, Minutes, Hours, Days
    Download Announcer
    Source Code
    Test it on Parallel-Universe.de

    Commands:
    • announce <filename> -- Announces a file to the server
    • reloadannouncer -- Reloads the plugin
    Installation:
    1. Just put the Announcer.jar into you plugins folder
    2. create you messages as *.txt files with the messages in the specific folders
    3. restart/reload your server
    4. The configuration file will be auto-generated on the first start
    Permissions:
    • Announcer.announce- allows the player to announce messages
    • Announcer.reloadannouncer - allows the player to reload the plugin
    • Operators and the console always have all permissions
    Changes:
    Version 1.1.0
    • Fixed typo (anounce -> announce)
    • Added SuperPerms support
    • Fixed the commands not being registered if there are no scheduled messages
    Version 1.0.0
    • Initial release
     
  2. Offline

    Plague

    title is missing plugin version
     
  3. Offline

    Quick_Wango

    fixed that
     
  4. Offline

    Venatius

    Managed to miss the second N in "announcer/announce" every time. I'm not trying to be nitpicky here, but it's even in the plugin title. And it's not a purely aesthetic difference. Imagine a player hypothetically telling another player, verbally, about this plugin. The other, spelling it correctly, would search Bukkit.org and not find it. It might also lead to confusion with people trying to set permissions or use commands if they somehow glossed over the typo without noticing.
    If this title spelling choice is completely intentional, please disregard all the above except the word "verbally" and just pretend I randomly decided to post the word "verbally" for no reason at all. And this disclaimer.
     
  5. Offline

    Quick_Wango

    Fail, I'll fix that when I add SuperPerms support
     
  6. Offline

    Quick_Wango

    New version released!

    Changes:
    Version 1.1.0
    • Fixed typo (anounce -> announce)
    • Added SuperPerms support
    • Fixed the commands not being registered if there are no scheduled messages
    Watch out!
    The permission nodes have changed with this release!
    Anouncer.anounce -> Announcer.announce
    Anouncer.reloadanouncer -> Announcer.reloadannouncer
     
  7. Offline

    iLovePepsi_

    seems cool.
     
  8. Offline

    JanTTuX

    Testing.
    Also... is interval minutes or seconds or???

    ALSO! i cant get it to work i have file setted up like this:
    Code:
    &awww.serverjanttux.blogspot.com
    &aBuild RB 1060#
    &aRemember report if you see someone grieffing!
    &aSoon 24/7!
    &aDo not ask "can i get admin/op"
    and it says : - The given requested announcement is not available!

    EDIT5 : LOL sorry for all this stuff... but its working but they all come in same time :D
     
  9. Offline

    Quick_Wango

    My plugin is lightweight, simple to configure and uses files (which I prefer to config entries).
    I developed it for the needs of our server and I decided to release it here

    @JanTTuX: The plugins supports different time units:

    t = ticks
    s = seconds (1s = 20t)
    m = minutes (1m = 60s)
    h = hours (1h = 60m)
    d = days (1d = 24h)

    if no unit is given, the plugin assumes m (minutes)

    Oh and you have to make a file for every announcement

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

    novs12

    How to make it go on a new line?

    Edit: herp derp, got it! THANKS ALOT FOR THIS AWESOME PLUGIN!
    AutoAnnouncer never worked for me.

    Can I suggest a permissions node to disable the announces for whoever has the node?

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

    Quick_Wango

    I don't take feature requests for this plugin, because I'm developing it for my server
     
  12. Offline

    King_KYl3

    Please make it so we can change the tag and also add a command were you can broadcast in game like /announce [message]
     
  13. Offline

    Quick_Wango

    all that is already possible, didn't you read the thread?
     
  14. Offline

    Tendonsie

    Is is possible to add this

    Rang A:
    message 1 + 2

    Rang B:
    message 3 + 4

    Rang C:
    message 5+6

    So that new players get an announce to register, registered users get another message :)
     
  15. Offline

    Quick_Wango

    I'll think about it, but it my take a week or to as i'm currently finalizing a bigger project. And there won't be any releases from me til a recommended build of craftbukkit is released.
     
  16. Offline

    Deano

    Might be a silly question but does this support colors? and what kinda of codes if so? Thanks. I am really liking this plugin for its easy flexability and extremely low ram usage. Colors would be nice though. But if that means adding a bunch of code. forget it. whites fine with me.

    Thanks again for this plugin.
     
  17. Offline

    Quick_Wango

    normal color codes: &0, &1, &2, ..., &f
    as I wrote in the thread:
    btw: i'll set up a devbukkit page this weekend, there will be more information

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

    Deano

    Sorry I must have missed that.. and wow yea.. right there on the 3rd line DUH.. im sorry. jeez.
     
  19. Offline

    Quick_Wango

    no problem :)
     
  20. Offline

    revo96

    what code is green
    and where do i need to put it (can you show an example)
    thnx already for the great plugin
     
  21. Offline

    Quick_Wango

    Code:
    [&2Parallel-Universe&f]
    
    &9Denkt dran euch für das Donnerstags &eEvent &9im &eForum
    &9anzumelden!
    &9Anmeldungen werden bis &eDonnerstag um 18 Uhr &9entgegen
    &9genommen
    That's one of the messages from my server

    the color codes can be found by googling "minecraft color codes"
     
  22. Offline

    Quick_Wango

    I'm currently cleaning up and improving the plugin
    A new release and a BukkitDev page come with the next RB of CraftBukkit
     
  23. Offline

    Duggan

    If your still working on this plugin, may i suggest you add this feature:

    When noone is currently connected to the server the Announcer doesnt announce, Announcements.

    Just because this spams the crap outta my server log and if i was trying to find something it would that forever. Cheers
     
  24. Offline

    Quick_Wango

    yeah I'm still working on it. currently I have some issues with the stupid new configuration API, but when i've fixed that, this will be added
     
  25. Offline

    Quick_Wango

    The plugin is currently awaiting approval for BukkitDev:

    http://dev.bukkit.org/server-mods/announcr/

    Once it is approved you can download the new version 1.2 from the files page there.

    Changes:
    • Removed Permissions support (use SuperPerms!)
    • added chat colors to commands
    • reworked config handling
    • moved automated and manuel announcements in one directory
    The last change is actually a breaking change for current setups.
    All files have to be placed in the announcements folder which will be created on the first startup.
    The configuration has a new entry which specifies which announcements should be announced automaticly.
    That way you can also specify the order in which the announcements are posted.

    For any feature requests or bug reports please open an issue on my Github page: https://github.com/quickwango/Announcer/issues
     
  26. Offline

    BooGaLoo90

    nice plugin! i prefer files to config lines as well. however...
    You give absolutely no examples in any of your information on explaining on how to set up the config file.
    Code:
    interval: '15'
    instantStart: false
    debug: false
    directory: plugins/Announcer/announcements
    announcements: []
    
    You dont even put an example of the time interval. you put a number with no T,S,M..
    how am i supposed to know that it goes 15t or 15m. what if i tried m15 or 15 m, which i did.
    I dont want to have to play guessing games to complete a config.
    and on top of that you dont give any examples on how to put the adverisements in with correct spacing.
    im getting errors all over the place. and i know what im doing i run servers and edit configs/ add plugins daily and the informatin you provide with your plugin is very lacking when it comes to setting it up.
    i dont want to have to read every single post on this thread just to figure out my problems!
    EDIT: with the information provided this is how far i got:
    Code:
    interval: '15'
    instantStart: false
    debug: false
    directory: plugins/Announcer/announcements
    announcements: []
    
    nowhere.
     
  27. Offline

    Quick_Wango

    I'll change the default config in the next release, so that anyone can see how it works

    the announcements field is a simple list:
    [] indicates that the list is empty, so there won't be any automatic messages

    Code:
    announcements:
    - example
    - example2
    thats a list with two entries, Announcer then tries to load the files example.txt and example2.txt (in the given order), which will then automaticly announced to the server with the specified interval. if the announcement file has spaces (or other special characters) in its name, then you have to encapsulate it with quotes (single or double doesn't matter).
    -> normal Yaml syntax for string lists


    the interval time format is easy as well. The plugin uses a fomat which is easy to write and easy to parse.
    <number>[unit]
    if there is no unit specified, the plugin uses minutes as default.

    examples:

    15 = 15m => 15 minutes
    300s = 300 seconds
    1h => 1 hour
    2d => 2 days
    5000t => 5000 ticks

    the timer of craftbukkit uses the server ticks for delays, so the delays might not be exact when the server lags (doesn't get its 20 ticks per second)
     
  28. Offline

    BooGaLoo90

    yes i realize its a very simple config, but like i said, in the number setting you gave only a number. there you didnt put any letter following the number, so one could only guess whether to put the letter before, behind, or space them apart.

    secondly, for the "empty advert list" using the [] threw me off as well. and i dont know the structure for yaml so i didnt know that string lists use '-'. the [] threw me off because when i saw that i immediately thought oh that must be [advert1|adver2|advert3] and so on, or with commas. i tried both. realize im not a coder so you just have to make sure that your tutorial or what not is also understandable to people like me with no coding background at all =P.

    and sorry for the previous post, i spent about an hour trying to figure this damn config out with no success. I've installed quite a few plugins with ease on my server. the only difference is you are lacking a "tutorial for dummies" which someone like me needs, which normally plugins provide. =P
     
  29. Offline

    Quick_Wango

    I think thats because I hate to document my stuff.
    I also thought that most of the admins would know at least the yaml basics like lists
     

Share This Page