Inactive [ADMIN/CHAT] ScheduledAnnouncer2 - Add periodic messages to your server [1.4.5-R0.2.]

Discussion in 'Inactive/Unsupported Plugins' started by Whisk, Apr 6, 2012.

  1. Offline

    Whisk

    Download here!

    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 scheduled.
    BUKKIT DEV HERE

    This project is no longer managed by Whisk. You will find that Proeliumm is now working on the project. Expect updates.

    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!
    Setup:
    Download the latest Release
    Upload it into your plugin/ directory
    Restart or reload your server
    Or have a look at the Video Tutorial by BrandonHopkins

    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:
    /announce add <message>
    Needed Permission: announcer.add. Adds a new announcement with the Message: <message>
    /announce broadcast [<index>]
    Needed Permissions: announcer.broadcast. Broadcast an existing announcement NOW.
    /announce delete <index>
    Needed Permissions: announcer.delete. Removes the announcement with the passed index.
    /announce enable [true|false]
    Needed Permissions: announcer.moderate. Enables or disables the announcer.
    /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.
    /announce list
    Needed Permissions: announcer.moderate. Lists all announcements.
    /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.
    /announce reload
    Needed Permissions: announcer.admin. Reloads the config.yml.
    /announce prefix
    This changes the prefix of the announcements.
    Permissions:
    Only people with the permissions announcer.receiver will receive announcements, but everybody owns the permissions per default. All other permissions are with the commands above.

    Chagelog:


    v2.3 - Added MEtrics
    Added Message Limit to 100 characters.
    v2.2 - Fixed the random issue.
    v2.1 - Added the /an alias

    v2.0 - Release. Updated for 1.2.5

    Thanks to:
    • Glenn for a donation - You got me a MacBook Case!
    • ZephyrGaming for a donation - You got me a keyboard cover!
     
  2. Offline

    md_5

    Approved, moved RB to end of title.
     
  3. Offline

    oOAllstarOo

    When i set the interval to more than 10 seconds it stop announcing eventually, please help
     
  4. Offline

    prizna

    I tried to set my intervals to 3600 so they appear every hour, but they seem to appear every couple of minutes.
     
  5. Offline

    Whisk

    Sorry, I was not able to reply due to the 502 errors. Anyway, this was fixed in the latest release. You can download it from the updated download link.

    As I said before, I was unable to reply due to the errors. Anyway, this issue was also fixed in the latest release, and can be downloaded from the updated download link.

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

    rossistboss

    FINALLY!!!!!! an announcer that works and makes sense
     
  7. Offline

    Dehzz

    Hi, useful plugin and I'm using it on my CBS 1.2.5.
    One note - it is making an error with random option ON. I have 40+ announcements but tried it with 5, and the same error occured, something with array size. When random option is off the plugin works fine.
     
  8. Offline

    Whisk

    Dehzz I was almost positive that was fixed in the latest release. Have you tried version 2.2?

    Glad to hear you are enjoying it :)

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

    HunterT

    Woah, this is extremely sexy. We can do our own commands? Brilliant.
    EDIT: Please upgrade to dev, this is like the first announcer working in ages
     
  10. Offline

    Whisk

    I am using dev, if I know what your talking about. Just click the download link :p. And thanks for your input!
     
  11. Offline

    ProdigyTryH4rd

    [ADMIN] is supposed to be [ADMN] . . . Not supposed to be an I in it. JS
     
  12. Offline

    Whisk

    Unfortunately, I am not able to edit titles :p
     
  13. Offline

    navbarry

    This is one awesome plugin.
     
  14. Offline

    Whisk

    Glad to see you like it!
     
  15. Offline

    jazzman170

    looks like an epic plugin but i get this when i reload my server:


    2012-04-25 22:51:43 [SEVERE] Error occurred while enabling ScheduledAnnouncer2 v2.3 - For 1.2.5 (Is it up to date?)
    java.lang.IllegalArgumentException: Plugin cannot be null

    at org.whiskcraft.ScheduledAnnouncer.Metrics.<init>(Metrics.java:142)
    at org.whiskcraft.ScheduledAnnouncer.AnnouncerPlugin.onEnable(AnnouncerPlugin.java:90)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:543)
    at org.bukkit.Bukkit.reload(Bukkit.java:182)
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
    at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:469)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:599)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:568)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
     
  16. Offline

    Whisk

    Ah. I will fix that now.
     
  17. Offline

    zecheesy

  18. Offline

    Speedyboy235

    ERRORRRSSS!!!!! All I did was put '&6message' I think its the &6 or &2 etc stuff that's causing it, it worked before PERFECTLY, now all of a sudden it doesn't work... I even reset the config file and repasted it.... Still didn't work....
    Code:
    08:06:52 [INFO] [ScheduledAnnouncer2] Enabling ScheduledAnnouncer2 v2.3.1 - For 1.2.5
    08:06:52 [SEVERE] Cannot load plugins\ScheduledAnnouncer2\config.yml
    org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
    in "<string>", line 17, column 5:
            enabled: true
            ^
    expected <block end>, but found Anchor
    in "<string>", line 33, column 8:
            - '&6Want to play or try out &3Mob  ...
              ^
     
            at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfigur
    ation.java:55)
            at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java
    :143)
            at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java
    :109)
            at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfi
    guration.java:177)
            at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
            at org.whiskcraft.ScheduledAnnouncer.AnnouncerPlugin.reloadConfiguration(Annou
    ncerPlugin.java:169)
            at org.whiskcraft.ScheduledAnnouncer.AnnouncerPlugin.onEnable(AnnouncerPlugin.
    java:94)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:
    336)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java
    :381)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:256)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:238)
            at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:371)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:358)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: while parsing a block mapping
    in "<string>", line 17, column 5:
            enabled: true
            ^
    expected <block end>, but found Anchor
    in "<string>", line 33, column 8:
            - '&6Want to play or try out &3Mob  ...
              ^
     
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImp
    l.java:575)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
            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.composeMappingNode(Composer.java:237)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructo
    r.java:121)
            at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
            at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfigur
    ation.java:53)
            ... 16 more
    08:06:53 [INFO] ScheduledAnnouncer2 v2.3.1 - For 1.2.5 is enabled!
    EDIT: Redid all the phrases, but by copying and pasting them without the quotes then putting the quots after... :p
     
  19. Offline

    Whisk

    :) Reading the error helps :p

    Glad you are enjoying it!

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

    Speedyboy235

    Unless, of course, it's not in human understanding, I did fix what it said to fix, but it didn't fix it xD But all is good now. Great plugin man!
     
  21. Offline

    Whisk

    Thanks for the input!
     
  22. Offline

    N07070

    What a great plugin ! Thanks ! But the &n dosn't work .
     
  23. Bug:

    Players see the announcement TWICE instead of once.
    Any way to fix this?
    Server restart doesnt help, no error in logs, starts normally.
    Using the newest possible version of plugin :(
     
  24. Offline

    Whisk

    That would be a bug in Spout. Think it got fixed in the latest dev builds.
     
  25. switched to another plugin atm for while. But this should get fixed anyway
     
  26. Offline

    Whisk

    Thats fine, though I cant fix it. Its completely Spouts fault.
     
  27. so spout must fix this?
    how doesnt this announcer im using wont have this happening? :O its basicly 100% like urs in config , some bit changes thats all. :p odd
     
  28. Offline

    Whisk

    Many plugins, including essentials are having this issue. I would assume that you have either updated spout already or are not using messages longer than one line long. The new code for line wrapping is what caused this issue. You can see here that many people have this issue. http://forums.spout.org/threads/double-text-error.2492/
     
  29. Well dont know , i suppose i have up to date spout :) it would tell its outdated i believe.
    Also this new Zavsmessager doesn't do that :D it wont show double messages and ive never got double message FROM COMMANDS :)
     
  30. Offline

    Whisk

    Again, probably because my commands use up more than one line, which uses the word wrapping function :)
     

Share This Page