Inactive [INFO] TimedMessages v1.1.1 - broadcast messages perodically [1.1-R6]

Discussion in 'Inactive/Unsupported Plugins' started by grandwazir, Dec 24, 2011.

  1. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    TimedMessages

    TimedMessage is plugin for the Minecraft wrapper Bukkit that provides a method for administrators to broadcast messages periodically to the players on their server. You could use these messages to broadcast hints or important news. Alternatively you could target them at specific players who have a specific permission node, for example giving new player tips for guests on your server.

    Features
    • Simple and easy to configure.
    • Broadcast a message from a predefined list periodically.
    • Can broadcast to just players in a specific world.
    • Messages support colour codes in either classic format or in the style of &RED.
    • Split long messages into multiple lines with `.
    • Optionally define a permission node a player must have to receive that message.
    • Define times using flexible human readable format: i.e 1h30m = 1 hour and 30 minutes.
    • Start, stop, reload and check the status of your messages in game.
    Installation

    Ensure you are using the latest recommended build.

    Before installing, you need to make sure you are running at least the latest recommended build for Bukkit. Support is only given for problems when using a recommended build. This does not mean that the plugin will not work on other versions of Bukkit, the likelihood is it will, but it is not supported.

    Getting TimedMessages

    The best way to install TimedMessages is to use the symbolic link to the latest version. This link always points to the latest version of TimedMessages, so is safe to use in scripts or update plugins. Additionally you can to use the RSS feed provided by BukkitDev as this also includes a version changelog.

    Alternatively older versions are available as well, however they are not supported. If you are forced to use an older version for whatever reason, please let me know why by opening a issue on GitHub.

    Configuration

    Read the documentation

    All documentation for TimedMessages is available on the GitHub wiki, including example usage.

    This post has been edited 9 times. It was last edited by grandwazir Mar 3, 2012.
  2. Offline

    MeneXia

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Looks great, all you need is a changelog on the bottom and you've got all the necessary components for this to go into releases ;)
  3. Offline

    NetBlaze

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This plugin really helps me with periodic announcing. Thanks for creating it.
  4. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  5. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Would it be acceptable to link to the change log on BukkitDev? I have quite a few plugins to maintain and I am trying to reduce the amount of time it takes me to administrate all these forum threads.
  6. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Go ahead
  7. Offline

    Endelt

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i may ask stupid but, what colors do this plugin allow? i used &RED and &LIGHT_PURPLE and &LIGHT_GREEN purple and red works, NOT green :( any answer to this?
  8. Offline

    secondstomarz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    This post has been edited 1 time. It was last edited by secondstomarz Jan 11, 2012.
  9. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Still neeed that changelog
  10. Offline

    chuiby

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Why don't you make the newline character to '\r\n' instead of ` (\r\n is the Regex sequence for newlines on Windows).

    If you don't know what i'm talking about... read this:

    The character to make new lines on computers is actually not visible (obv. since its a 'new line' character) with a normal text reader.
    But that character can be read with Regex, or at least, identifiable.
    These character will be read normally with regex.
    Like this text:
    Hello my name is bob

    How are you today?
    Will appear as 'Hello my name is bob\r\n\r\nHow are you today?'

    The meaning of \r and \n:
    \r = Linebreak
    \n = Newline

    Macs uses \r
    Linux uses \n
    and Windows uses both (\r\n).

    I know it's stupid ._.

    Without a proper text editor, such as Notepad, if the lines are separated either by \r or \n it will show them all on the same line.

    So, if you wish to let admins put multiline messages (Which is great),
    You would either need to let users define the messages on multiple lines (not with the quote thing) or just make them type something like \r\n or \n to separate the text.

    Tip: \n should be alright for what you are trying to do. When your plugin tries to see if there's new lines, instead of using `, use \\n (\\n is a way to escape newline characters, so it won't read the \n as a newline char but as ... '\n')
  11. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @md_5

    There you go.

    @chuiby

    I'm aware of the convention; there was a reason I did not use it when I made that part of the plugin, but I forget what it was now.

    In the mean time I am keeping an eye on this pull request which, when accepted, will add line splitting into .sendMessage itself saving plugins the trouble. If it isn't accepted I'll make the change in the next release.
  12. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Approved
  13. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Code:
     Error occurred while enabling TimedMessages v1.0.0 (Is it up to date?): while scanning an anchor; expected alphabetic or numeric character, but found ;(59)
    while scanning an anchor
    in "<string>", line 19, column 8:
    - '&DARK_GREEN;Our dedi specs : Int ...
    ^
    expected alphabetic or numeric character, but found ;(59)
    in "<string>", line 19, column 19:
    - '&DARK_GREEN;Our dedi specs : Intel Xeon E3- ...
    at org.yaml.snakeyaml.scanner.ScannerImpl.scanAnchor(ScannerImpl.java:1169)
    ^
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchAnchor(ScannerImpl.java:782)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:315)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseIndentlessSequenceEntry.produce(ParserImpl.java:535)
    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.composeSequenceNode(Composer.java:203)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    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.composeMappingNode(Composer.java:237)
    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.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    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(YamlConfiguration.java:60)
    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(YamlConfiguration.java:241)
    at name.richardson.james.bukkit.util.configuration.AbstractConfiguration.load(AbstractConfiguration.java:59)
    at name.richardson.james.bukkit.util.configuration.AbstractConfiguration.<init>(AbstractConfiguration.java:43)
    at name.richardson.james.bukkit.timedmessages.MessagesConfiguration.<init>(MessagesConfiguration.java:38)
    at name.richardson.james.bukkit.timedmessages.TimedMessages.onEnable(TimedMessages.java:72)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
    at name.richardson.james.bukkit.timedmessages.TimedMessages.loadMessagesConfiguration(TimedMessages.java:56)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:970)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:190)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:173)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:440)
    at org.bukkit.Bukkit.reload(Bukkit.java:188)
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:382)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:768)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:728)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:721)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:96)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:534)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
  14. Offline

    Mrchasez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Another

    Code:
    [SEVERE] Error occurred while enabling TimedMessages v1.0.0 (Is it up to date?): while parsing a block mapping; expected <block end>, but found Anchor
    in "<string>", line 5, column 5:
    mode: rotation
    ^
    expected <block end>, but found Anchor
    in "<string>", line 19, column 8:
    - '&DARK_GREEN Our dedi specs : Int ...
    ^
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.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.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.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:60)
    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(YamlConfiguration.java:241)
    at name.richardson.james.bukkit.util.configuration.AbstractConfiguration.load(AbstractConfiguration.java:59)
    at name.richardson.james.bukkit.timedmessages.MessagesConfiguration.<init>(MessagesConfiguration.java:38)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
    at name.richardson.james.bukkit.util.configuration.AbstractConfiguration.<init>(AbstractConfiguration.java:43)
    at name.richardson.james.bukkit.timedmessages.TimedMessages.loadMessagesConfiguration(TimedMessages.java:56)
    at name.richardson.james.bukkit.timedmessages.TimedMessages.onEnable(TimedMessages.java:72)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:970)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:190)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:173)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:355)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:342)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:174)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
  15. Offline

    AliasXNeo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Getting the same error, plugin won't even load. Developer?
  16. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @AliasXNeo @Mrchasez

    Try using double quotes around your message and if that doesn't work avoid using : in your messages.
  17. Offline

    CarlG

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Code:
    # You can find out more about these options by visiting the wiki at https://github.com/grandwazir/TimedMessages/wiki
     
    messages:
      guest-hints:
        mode: rotation
        delay: 5s
        permission: group.noob
        messages:
        - Welcome to our server
        - We hope you enjoy your stay.
        - If you wish to build, please sign up at <This is the site, but I'm not going to promote myself.>
    
    that's my messages.yml

    and the default group has the
    - group.noob
    perm, HOWEVER, no messages can be seen. I've had the timer set at 30s, 1m, and other times, but it wont show up.

    Ideas?
  18. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Try using the latest Bukkit recommended build and see if that fixes the problem.
  19. Offline

    CarlG

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Still no... I deoped/demoted myself to the right status, and it isnt going...
  20. Offline

    titanicnut

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How do you reload the plugin without using /reload?
  21. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Type /tm for a full list of commands which includes /tm reload.
  22. Offline

    Royalgamer06

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Please update:
    always having... [FINE] <name.richardson.james.bukkit.timedmessages.random.RandomMessage>
    when a message comes up
  23. Offline

    DarklightPvP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Download link for TimedMessages is broken.
  24. Offline

    phanaticd

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    im not seeing any messages in game
  25. Offline

    Mr.Sileos

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Does anyone else have the problem of the messages not sticking? I set up all of my messages and they disappear when my server restarts. (I have a daily restart) also when ever I reload the app I lose my messages again. What is the deal am I doing something wrong?
    Max Sentence likes this.
  26. Offline

    5gavinator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey, great plugin. But, it doesn't seem to be working? whats up? here is what is in my messages.yml plugin.
    messages:
    general-hints:
    mode: rotation
    delay: 30s
    messages:
    - &2Type /help for details on all our commands.
    - &2Type /sethome to set your home.
    - &2You may not build near spawn.
    - &2Ask an op to help you protect your stuff in the Peaceful World!
    - &2No admins on and you need help? visit our website at &1Reptile.tk
    - &2Refer a friend to the server and your friend an you will recieve 300 bucks!
  27. Offline

    XsNiPeRxXz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Where is the download?
  28. Offline

    Reteckz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Update it please!
  29. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Add " to the start and end of those messages like this:

    Code:
    - "&2Type /help for details on all our commands."
    See the 'Getting TimedMessages' section of the main post.

    It is now updated!
  30. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Disable debugging in config.yml

    Code:
    debugging: false

Share This Page