[INACTIVE][CHAT] ScheduledAnnouncer 1.8.1 - Auto Broadcasts by a Scheduler [1.1-R4]

Discussion in 'Inactive/Unsupported Plugins' started by MiHo, Apr 7, 2011.

  1. Offline

    MiHo

    ScheduledAnnouncer [Version 1.8.1]

    Scheduled Announcer is a very simple tool, which only does what's its name told us. It automatically sends a broadcast out of a list controlled by a schedule.

    Features:

    • Sends Scheduled Broadcast to all Players
    • Easy to configure by 'config.yml' or ingame with the '/announce' command.
    • Supports colors (&1, &2... &9, &a, &b... &f) and newlines with &n.
    • Supports executing commands inside Announcements. (Like "Now it will get day!&n/time day")
    • Supports newest Bukkit permissions system!

    How To Setup (open)

    1. Download the latest Release
    2. Drag&Drop the JAR file to your 'plugin/' directory
    3. Restart or reload your server

    There's a video tutorial on how to setup and configure that plugin on YouTube too. Thanks to BrandonHopkins!

    Configuration (open)
    Code:
    #
    #
    # ScheduledAnnouncer Configuration File
    # =====================================
    #
    # Don't use tabs in *.yml file!
    #
    
    announcement:
        # Use this flag to temporary disable the announcements.
        # enabled: false, means that there wouldn't be any announcements.
        enabled: true
    
        # Set this to true will announce in random order.
        # 'false' will announce in sequential (one after another) order.
        random: false
    
        # Defines the prefix for the announcement. Use & + hex char 
        # for color codes.
        prefix: '&c[Announcement] '
    
        # The time of one interval in seconds.
        interval: 100
    
        # List of messages to announce. You could use color codes by
        # using & + hex chars too. &n will produce a new line.
        messages:
        - 'This is the first default announcement!'
        - 'Use /announce help to get info how to config this plugin.'
        - 'You can also configure this plugin with its config.yml too!'

    Commands (open)
    Code:
    /announce add <message>
    Needed Permission: announcer.add
    Adds a new announcement with the Message: <message>
    Code:
    /announce broadcast [<index>]
    Needed Permissions: announcer.broadcast
    Broadcast an existing announcement NOW.
    Code:
    /announce delete <index>
    Needed Permissions: announcer.delete
    Removes the announcement with the passed index.
    Code:
    /announce enable [true|false]
    Needed Permissions: announcer.moderate
    Enables or disables the announcer.
    Code:
    /announce interval <seconds>
    Needed Permissions: announcer.moderate
    Sets the seconds between the announcements.
    Calling it without an interval to set will return the current interval.
    Code:
    /announce list
    Needed Permissions: announcer.moderate
    Lists all announcements.
    Code:
    /announce random [true|false]
    Needed Permissions: announcer.moderate
    Enables or disables the random announcing mode.
    Only calling /announce random without true or false, will return current mode.
    Code:
    /announce reload
    Needed Permissions: announcer.admin
    Reloads the config.yml.

    Changelog (Version 1.8.1):

    • Fixed problem with announcing randomly.

    Changelog (Version 1.8):

    • Made Prefix fully customizable. (Changed the configuration a bit...)
    • Added '/announce prefix <text>' command.
    • Default configuration file is now created if there isn't any. (No more ZIP-downloads necessary, simply drag&drop the JAR-file)
    Older Changelogs (open)
    Version 1.7.1:
    • Fix problems with executing commands
    • Works with 1.1-R5-SNAPSHOT
    Version 1.7.0:
    • Implemented support for new bukkit permissions system
    • Supports /announce now as alias for /announce broadcast
    Version 1.6.3:
    • Fixed 'sendToAll' bug, caused by invalid attaching process to Permissions.
    Version 1.6.2:
    • Fixed 'sendToAll' color codes bug.
    Version 1.6.1:
    • Do not show empty tag brackets. (When setting tag to '' or null)
    Version 1.6:
    • Added pages in /announce list command.
    • Fixed saving after deleting a Announcement.
    Version 1.5:
    • Added multiline support (with &n you could produce a new line inside one Announcement).
    • Added a support for executing Announcements as commands, if they start with a backslash.
    Version 1.4:
    • Added color support (with &1, &2, ... &f in Messages)
    • Added a seperated color setting for tag and message (See Config Spoiler this Thread)
    Version 1.3:
    • Added the feature to only send Announcement with the Permission "announcer.receiver". Need to set the flag: "announcement.sendToAll" in the ScheduledAnnouncer 'config.yml'.
    Version 1.2.2:
    • Changed the example config file, cause of a mistake in it.
    Version 1.2.1:
    • Bugfix for /announce interval bug.
    Version 1.2:
    • Added many new commands to configure it ingame. (/announce reload, /announce enable, /announce broadcast and /announce random)
    • Ability to choose between Random Mode and Sequential Mode.
    • Use different Permissions for different kind of tasks.
    Version 1.1:
    • Enables to change the color of the Broadcast in config.yml
    • Calling '/announce interval' without any paramater now returns the current interval.
    • Changed the name of the JAR to "ScheduledAnnouncer.jar" (Please delete the old one before update!)
    Version 1.0.2:
    • Support for CraftBukkit 670...
    Version 1.0.1:
    • Small bug fix...
    Version 1.0:
    • First Release!
     
  2. Offline

    kahlilnc

    Is there permissions for who it pop up for?
     
  3. Offline

    MiHo

    Of course! As you can read in the head post, you have to set the "sendToAll" flag in config.yml to "false" and add the "announcer.receiver" permission to the user, which should receive the announcements!
     
  4. Offline

    MiHo

    Tested with CB689 and Minecraft 1.5_01 and it works! :)
     
  5. Offline

    G1R Productions

    Is it possible to make it so it also does commands like setting off weather etc.... I have a weather changing plugin and I have the announcer randomly choose a weather pattern and announce it every morning but also having it auto change the weather at the same time would be sick.
     
  6. Offline

    MiHo

    In the current version not, but I will try to implement it!
     
  7. Offline

    G1R Productions

    Awesome thanks!!! Your Awesome!!!!
     
  8. Offline

    MiHo

    Excuse me, that it takes so long, but I am developing another Minecraft plugin currently.
    I uploaded a new Version (1.5). It now supports to execute a command like "/time day" when it's the announcement text. You could also combine that with the NewLine function "&n"!

    For example if you add an announcement like that:
    Code:
    Now it will get day!&n/time day
    It will get day, when this gets announce!

    I hope I have added the feature you wanted to?
     
  9. Offline

    Sparx

    @MiHo I have a suggestion, could you make it so that only certain groups (permissions) receive certain broadcasts? I advertise VIP/donator on my server, but I don't want the donators to see that annoying message.
    I also announce server information that everybody should see, so I can't just remove the receiver permission from VIPs

    Just a suggestion ;)
     
  10. Offline

    MiHo

    I will try to implement different kind of priority levels and different kinds of permission levels, if that helps you.
     
  11. Offline

    arsenic87

    I have a request :). Can you make this the first announcer which can announce in zones / worlds / on events? Would be great if it could be used with world guard zones, or its own zones. So you only get the announcements when in a specific zone. Think; mall announcements =)
     
  12. Offline

    MiHo

    Hm... would be able to do too, but will me take some to implement that!
     
  13. Offline

    Tgwizman

    Can you PLEASE list the color names!!! Can you also list where you got them from, or not if you made em up.
     
  14. Offline

    MiHo

  15. Offline

    Kamineru73

    can you make it to where it sends the message to the player when the've logged on once, because I want to get a message out to everyone, but without constantly notifying them and without having the possibility of them not getting the message.
    If you could add that this would be 10x better, I'm still gonna get it though, so thanks ;D
     
  16. Offline

    zachoooo

    Awesome Plugin!!!
     
  17. Offline

    Mike A

    For some reason the '/announce' commands aren't working. It just says Unknown Command.
    The plugin is in my /plugins/ folder in my server

    Edit: Seems like the .jar isn't even loading with the server. Its not on my /plugins list and it is in the right folder with the /scheduledannouncer config folder.
     
  18. Offline

    Jonathan Bloom

    Can you add pagination to the announce list? I have a lot of announcements and they aren't showing up for me.
     
  19. Offline

    Henny Looze

    What colours can be used? i know that LIGHT_PURPLE can but i want to use different colours like blue but not sure if it will work
     
  20. Offline

    MiHo

    Of Course, will be in next Release!

    Valid colors are:
    Quote of Bukkit Documentation


    Does the problem already exist? Tried you restarting the server, and give it a second chance to recognize the plugin?
     
  21. Offline

    Lirycs78

    same problem
     
  22. Offline

    MiHo

    Problem is not traceable for me.

    What operatings system and bukkit version are you using?
     
  23. Offline

    lfcalex9

    I'm running Bukkit RB (740) and Minecraft 1.5_02, getting the same problem.
     
  24. Offline

    MiHo

    Hm... any errors (exceptions) in the logs on startup?
     
  25. Offline

    dkrk

    YES MAN!!! Love YOU full HOMO soz for caps
     
  26. Offline

    MiHo

    Okay?
     
  27. Offline

    CoolOppo

    I was wondering, are you able to make a broadcast pop up when somebody says a phrase? (and a different broadcast for each phrase)?
    That would be amazing! I don't know if that's the direction you want this to go in though, so I'm fine if you don't wanna do it.
     
  28. Offline

    MiHo

    Of course this would be makeable, but that's not the idea behinde the plugin. Probably you could post the idea in "Bukkit Plugin Request" forum.
     
  29. bukkit build: 766

    scheduled announcer version: 1.5

    please help i'm getting any annoying error, i dont even see whats wrong
    i keep getting this error:

    21:05:39 [SEVERE] Could not load 'plugins/ScheduledAnnouncer.jar' in folder 'plugins':
    while parsing a block mapping
    in "<reader>", line 11, column 5:
    enabled: true
    ^
    expected <block end>, but found Scalar
    in "<reader>", line 27, column 30:
    - 'Type /help if you don't know the commands.'
    ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:576)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.bukkit.util.config.Configuration.load(Configuration.java:73)
    at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:158)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:166)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:191)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:115)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:100)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)


    my config is:

    Code:
    #
    # ScheduledAnnouncer Configuration File
    # =====================================
    #
    # Don't use tabs in *.yml file!
    #
    
    announcement:
        # Use this flag to temporary disable the annoucements.
        # enabled: false, means that there wouldn't be any announcements.
        enabled: true
    
        # Set this to true will announce in random order.
        # False will announce in sequential (one after another) order.
        random: false
    
        # Defines the color and the tag used for the broadcasts
        broadcast-color: GOLD
        broadcast-tag: Tip
    
        # The time of one interval in seconds.
        interval: 100
    
        # List of Announcements
        messages:
        - 'Type /rules for a list of rules.'
        - 'Type /help if you don't know the commands.'
        - 'You can make a disposal bin using a sign. Type [Disposal] on the sign.'
        - 'You can type /tpa <name> to request a teleport.'
        - 'You can set home by typing /sethome and /home to teleport home.'
        - 'Type /spawn to go to spawn if you are lost.'
    
        # If you set 'sendToAll' to false, only players with the permission:
        # - announcer.receive
        # will receive the Announcements. If you are using no Permissions
        # plugin this flag doesn't have any use for you.
        sendToAll: true
     
  30. Offline

    MiHo

    Your problem is the ' - char inside the messages. Don't use them inside the messages, YAML can't handle them.
    So don't write "don't know" write "do not know" and it will work! (hopefully...)
     
  31. thanks so much. i really just wanted a simple Tip announcer so the people who are new can get some good basic tips. great mod! thanks again
     

Share This Page