Inactive [INFO] AutoMessage v1.5a - Broadcast Automatic Messages [1535]

Discussion in 'Inactive/Unsupported Plugins' started by RedFalKon, Jan 31, 2011.

     
  1. Offline

    RedFalKon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    AutoMessage (Version 1.5a)

    Attention: There is currently an issue with AutoMessage v1.5a on CB Build #1185 which causes duplicate console output, in-game messages are unaffected however, this will be fixed in v1.6.

    A Simple Automatic Message plugin developed upon request from:
    http://forums.bukkit.org/threads/tip-message.2933/

    This Plugin allows multiple messages to be broadcast serverwide at a set interval. The default time between messages is around 20 Seconds. This can be changed in the configuration file "automessages.properties".

    Installation
    1. Copy "plugins\AutoMessage.jar" to your CraftBukkit Server Plugins Directory.
    2. Copy "plugins\automessages.properties" to your CraftBukkit Server Plugins Directory.
    Commands

    • /reloadmsg - Reload the Message Configuration File (OPs Only)
    Adding Messages


    New Messages can be added by creating a new line in the properties file in the form of "msg=[message]".
    Code:
    msg=This is a Sample Message !
    Colours can now be used in messages with the $ prefix
    Code:
    msg=$cHello $eAll!
    Multiple Lines can now also be used in messages with $n

    Code:
    msg=Hello All!$nA New Line
    Colour Codes:

    Black = $0
    Dark Blue = $1
    Dark Green = $2
    Dark Aqua = $3
    Dark Red= $4
    Dark Purple = $5
    Gold = $6
    Gray = $7
    Dark Grey = $8
    Blue = $9
    Green = $a
    Aqua = $b
    Red = $c
    Light Purple = $d
    Yellow = $e
    White = $f

    To-Do
    • Add Colour Code Support for Messages (v1.1+)
    • Add Per User Message Control (1.6)
    • Add YAML Configuration File Support (1.6)
    • Move Config File to Plugins/AutoMessage Directory (1.6)
    • Add In-Game Message Editing/Viewing Functionaility (1.6)
    • Add Group Permissions Support (1.7?)
    Change Log

    • Versino 1.5a
      • Moved Properties File to Plugins Directory
    • Version 1.5
      • Removed Prior Change (Disable Colour Option)
      • Removed Truncation of Messages (Requires CraftBukkit #406)
    • Version 1.4
      • Added option to disable Colour Codes in messages (allows for untruncated messages)
    • Version 1.3
      • Added Multi-Line Support with $n Delimiter
      • Implemented Fix to Prevent Client and Server Crashes
      • Fixed problem when reading the plugin tag after /reloadmsg
    • Version 1.2
      • Added Colour Code Support for Message Prefix
      • Allowed removal of Message Prefix
      • Added support for message shuffling
      • Added /reloadmsg command to reload config for Server OPs
    • Version 1.1
      • Added Colour Code Support with $ prefix
    • Version 1.0
      • Released AutoMessage 1.0
    Downloads:

    Current CraftBukkit Builds:
    [MC]AutoMessage.zip (Latest Version for CB RB and Current Builds)

    Donations:
    If you like the plugin please consider donating to help withthe production of new features and updates for this and other plugins I develop.

    Donate via PayPal

    This post has been edited 4 times. It was last edited by RedFalKon Jan 1, 2012.
    Chillax_Team, DaEgo, tombik and 5 others like this.
  2.  
  3. Offline

    tombik

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Running on CB 1337 and everything is fine. Update header.
  4. Offline

    Llamasquishy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just curious, what would be the point in that?
  5. Offline

    Melonking

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Less log spam.
  6. Offline

    Asphodan

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You should just get more people.
  7. Offline

    monir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    nice plugin works great!

    This post has been edited 1 time. It was last edited by monir Nov 5, 2011.
  8. Offline

    Amrac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi,
    Can i get the source? I want to do "Add MySQL Support for Messages in addition to the existing Flat File. (1.7?)"
  9. Offline

    nickstern

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm loving this plugin ;D
    Is there any way you could make it say a message at a specific time of day.
    Like at dawn, midday, sunset, midnight or custom times?
    Thanks so much if you do this :)
  10. Offline

    Grimmy777

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Where can i find a list of all the color codes? Thanks!
  11. Offline

    RedFalKon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This will be a feature of the newest release as the plugin will send messages to each person rather than the entire server to allow users to specify if they wish to have automatic messages or not.
  12. Offline

    RedFalKon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Check for the Colour Codes section in the OP
  13. Offline

    Zathras

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @RedFalKon Enjoying this so far. Can you suppress messages when there are no users currently logged in? My console log fills up with messages that no one is reading.
  14. Offline

    Zathras

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'd like to ask this in reverse. What is the point of sending messages when there is no one around to read them? It should be an easy condition to add. In pseudocode:
    Code:
    timercallback()
    {
       if (server.getPlayerCount() > 0)
          chat.printMessage(message.next());
    }
    
  15. Offline

    juloo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    To-Do
    • Add a command '/msgbroadcast 1' too see the 1st message

    Sory for my bad english, i'm french
  16. Offline

    ibreaktoucher

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    is it compatible with 1.0.0 ?
  17. Offline

    xKoKSii

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    something like /showmsg that shows all msgs will be really nice :)
  18. Offline

    xKoKSii

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    yaeh thats also nice
    yes it is
  19. Offline

    juloo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i've a other good idea : $s underline s$
    $b bolt b$
    $i italic i$
  20. Offline

    RedFalKon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That is currently impossible due to how Minecraft displays text. Only the standard text formatting and colours will work when displaying messages in the game.
  21. Offline

    juloo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    with spout & spoutcraft
  22. Offline

    xKoKSii

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Is it possible that u add my command in the next update?
  23. Online

    number1_Master

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i get 2 errors
    startup error:
    Code:
    08:03:17 [SEVERE] Error occurred while enabling AutoMessage v1.5 (Is it up to date?): 1
    java.lang.ArrayIndexOutOfBoundsException: 1
        at uk.co.mdtechnology.automessage.AutoMessage.loadData(AutoMessage.java:79)
        at uk.co.mdtechnology.automessage.AutoMessage.onEnable(AutoMessage.java:41)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:182)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:165)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:337)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:324)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:161)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:388)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    08:03:17 [INFO] [bPermissions] Stats are being kept for this plugin. To opt-out for any reason, check plugins/stats.
    
    when i type /reloadmsg :
    Code:
    08:04:19 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'reloadmsg' in plugin AutoMessage v1.5
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:370)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
        at lishid.orebfuscator.utils.NetServerHandlerProxy.a(NetServerHandlerProxy.java:106)
        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:92)
        at lishid.orebfuscator.utils.NetServerHandlerProxy.a(NetServerHandlerProxy.java:44)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at uk.co.mdtechnology.automessage.AutoMessage.loadData(AutoMessage.java:79)
        at uk.co.mdtechnology.automessage.AutoMessage.onCommand(AutoMessage.java:96)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 14 more
    
    This is on my test, so if you need me to do something crazy, ill do it :p . I'm running cb1535 . My plugins at the moment are bPermissions, CommandBook, iConomy 5, LogBlock (and LogBlock Questioner), Colored Signs, mcMMO, multiworld, Orebfuscator, Ptweaks, Towny (with Questioner and TownyChat), SpleefExtreme, and WorldEdit.
  24. Online

    number1_Master

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ya, i was on a server who (in 1.4) had a client that forced the server to let him underline, do bold text, ect. and it crashed the server.
    Don't ask me how, its hacks.
  25. Offline

    Iliketoputblocks

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    it works great but i just worry about one thing, when i put random on either true or false, my sentences always go random. how to fix this? i rly need em in order!
  26. Offline

    Ceitzer

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    For me they only show the first tip when reloading the whole server, but after that it wont show any messages, and /reloadmsg just gives me another error. And i am only one who can see that first message, no one else. Any idea what could be wrong?
  27. Offline

    OZ4RK

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ON the latest RB, 1597, I'm getting this startup error. PLugin is NOT functioning.
    Code:
    [SEVERE] Error occurred while enabling AutoMessage v1.5 (Is it up to date?): 1
    java.lang.ArrayIndexOutOfBoundsException: 1
        at uk.co.mdtechnology.automessage.AutoMessage.loadData(AutoMessage.java:79)
        at uk.co.mdtechnology.automessage.AutoMessage.onEnable(AutoMessage.java:41)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    
    A quick replay would be much appreciated :D
    nunber1_Master likes this.
  28. Offline

    DaEgo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    post ur filter in CODE
  29. Offline

    OZ4RK

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm sorry, my "filter"? I already posted my log in code. Do you want my .properties?

    This post has been edited 1 time. It was last edited by OZ4RK Dec 13, 2011.
  30. Offline

    DaEgo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    oh sry wrong plugin
    i just can say that it works perfect on my server CB 1602
  31. Offline

    Plutonium2222

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    When we make a new line with $n, it remove the precedent color
    -Sorry if I'm bad in English I'm french x).
  32. Offline

    Niemand

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    PLUGIN WORKS FINE WITH CB#1597 (first recommended 1.0.1-R1 build)

    I have a (exactly it's two) suggestion(s) for a new feature:
    Usercount-dependencies and show-rate!

    Messages are shown when a usercount of x is reached. Messages are shown y-times as many as other messages.

    So for example:
    msg=Hello people! check out the forums!|1:1
    it shows the message when there is at least 1 player on the server and it is shown in a rate of 1.

    msg=Server is nearly full! Get premium to not-be in the danger of getting kicked!|25:5
    this message is shown when 25 players are on the server (if you have 30 slots for example) and is shown 5 times as much as a message with rate 1.

    Maybe this can be extended to:
    msg=Server is full! Get premium to avoid being kicked!|28:5;29:8;30:10
    This message is shown 5 times more often with 28 players, 8x with 29 and 10x with 30 players.


    Edit:
    This is, because the Automessage "spams" my Server.log, even if there is no one online. ;)

    This post has been edited 2 times. It was last edited by Niemand Dec 14, 2011.

Share This Page