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

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

  1. 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:
    Show (open)

    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
     
    Chillax_Team, DaEgo, tombik and 5 others like this.
  2. Version 1.2 has already been released, the OP already has the changes logged and the new version ready for download, I just forgot to change the Thread Description.
     
  3. Nice, however I don't really want any plugin files in my root. The standard seems to be plugins\pluginname\files
     
  4. Offline

    Sroxah

    Running 252 I get the following error.

    Feb 7, 2011 9:23:12 AM org.bukkit.craftbukkit.CraftServer loadPlugins
    SEVERE: 1 (Is it up to date?)
    java.lang.ArrayIndexOutOfBoundsException: 1
    at com.bukkit.mdit.automessage.AutoMessage.loadData(AutoMessage.java:89)
    at com.bukkit.mdit.automessage.AutoMessage.onEnable(AutoMessage.java:52)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:384)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:175)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:64)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:45)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:187)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:184)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:167)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:310)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:292)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
     
  5. Offline

    Daniel Bang

    same error as u Sroxah :S
     
  6. Please ensure that the automessages.properties file is in the root of the server directory (where craftbukkit.jar is located).

    If that still causes the exception please overwrite that config file with a new copy, in this case the only way to throw such an exception is a malformed config file.

    I have tested the plugin against build #252 and the latest build #271 without any problems.
     
  7. Offline

    majorcyto

    Hey RedFalKon did you add word wrapping for the color? So itll continue its color to the next line instead of reverting to white.
     
  8. I have yet to look into this, if I have time I may start working on it.
     
  9. Offline

    majorcyto

    Alright thanks, well HeroChat maker added it to his, i sure you could get the method from that plugin and put it into this one.
     
  10. Offline

    barricas

    Everyone on the client side crashes (yes, that litle screen saying "minecraft has crashed") when the plugin sends a message.....

     
  11. Prior error messages in this thread have occurred Server-Side (CraftBukkit), I don't quite see what you're getting at here. Plugins won't generally interface directly with the Game Client, it's the server that handles that. From what I can see you're actually experiencing a crash in the Minecraft Client, this isn't the place to discuss such a problem although I would recommend that you re-download your client (Minecraft.jar or Minecraft.exe).
     
  12. Offline

    barricas

    I'll try
    Edit: I did a clean install and it still happens, Now i turned off my server. I dont belive its a config file problem.
    I will tell this to mojang...
     
  13. Offline

    StarmanTristam

    I am also running into client-side crashes with this plugin installed exactly the same as barricas is. I have a clean install of minecraft and my bukkit server. I repeatedly tested with other folks connecting to my server with and without the plugin installed. Everytime this plugin was installed, about 5 minutes into the server being up and players being connected everyone would have minecraft crashes.
     
  14. Offline

    Moredice

    After having edited the settings file and put in some test phrases and long sentences, I found a problem when an auto-message breaks up a multiline sentence to be displayed. If this sentence is initially colored, only the first line displayed in chat will be correctly colored, while the next line has the default color (white).

    It would be great to have this fixed! :)


    Edit: This may just not be the addon itself, but a limitation within the software, as other addons displaying multiline messages behave the same way.

    Anyway, I've had the Minecraft crash screen as well, very random, and same error message is shown in the server console as the above posts show.
     
  15. It is quite possible then that the buffer on the Client Side is filling up and causing an exception, however I see no reason in the code for such an exception to occour client side. All the plugin does is send messages to players through the server at a set interval via the broadcastMessage() method. However I will test the plugin again, I if encounter the error I will see about changing how the plugin sends messages.
     
  16. Offline

    aPunch

    To all of those receiving errors:

    Update to latest version of Bukkit. When it says "Is it up to date?", I believe it is referring to Bukkit itself, not Craftbukkit. I did this and AutoMessage worked for me. Before I had an updated Bukkit installed, the console gave me the exact same error message as you.
     
  17. Offline

    barricas

    Didn't say nothing about Is it up to date but anyway I decided to update bukkit (not craftbukkit) and it stays the same.
     
  18. Offline

    aPunch

    Yea, for some reason AutoMessage isn't working for me again. I updated to CB build302, maybe that is why.
     
  19. Offline

    barricas

    Any news?
     
  20. Offline

    Landmine

    First, thank you for this mod. It's a must have for any server that wants to remind players of commands and stuff, I love it.

    Secondly, is there a way to have multi-line message? Such as:
    Make your Home!
    /home Takes you to your home
    /home set Sets your home to your current position
    /home delete Deletes your home

    Thanks all, and hope to see what else this mod brings to the table soon!
     
  21. After some research into the client crashes I have now found the problem behind it, It is not a fault with the plugin but a problem with how Minecraft handles colour codes, the crash is encountered following a broken or valid line terminating colour code with either nothing following it or directly after the 53rd character, for those of you using messages over 53 characters with frequent use of colour codes may encounter this error, I will fix this in Version 1.3 with a simple limiter. For now just use messages shorter than 53 characters.

    I already intend to add multi-line support after the aforementioned fix is deployed.

    Update: Version 1.3 Released with Multi-Line Support and a Client Crash Fix.
     
  22. Offline

    Mathman200

    Nope. I uninstalled cause I lost about 7 players. Please Fix!
     
  23. If you weren't so quick to post, you would have noticed that I have already addressed this issue. I have now released Version 1.3 which implements a fix for this problem.
     
  24. Offline

    Landmine

    Red, thank you so much! You're awesome!
     
  25. Offline

    cloudafloat

  26. Offline

    kronflux

    Can I please get the source for this? Decompiler is sucking right now.
    OR can you simply increase the total limit?
    I'd be happy with 62. But honestly, it should be even higher, to account for colors.
    Like.
    No. Sorry. Even better.
    Simply make the plugin ignore color/new line values.
    And make messages allowed to be as long as the -actual characters that are displayed- until the end of the chat line.
     
  27. Offline

    Landmine

    Let Matthew work and he'll fix it. Just wait a little bit.
     
  28. In order for the plugin to support colour codes the messages must be limited to 53 characters per line (including the prefix), therefore the cutting off of messages as aforementioned by @cloudafloat is the only possible fix to prevent potential crashes, you can change this with the $n character to output the rest of the message to the next line. The Minecraft font is not Mono-Spaced meaning that all characters have their own width, the only safe value is 53 characters (thus the limit), the greatest line you can enter would be 53 'M' characters. I could implement a option to disable colour codes within the plugin and thus allow longer messages per line if required. This however would mean that all messages would be plain and un-parsed for colour codes. The plugin however currently works as intended to prevent client and server crashes. This is caused by a limitation in Minecraft, I have no control over it.
     
  29. Offline

    barricas

    Thanks! Back to the original glory!
     
  30. Offline

    kronflux

    All I know is, this plugin has become useless to me as of 1.3, and I'm switching back to the previous version, because every single message I have is being truncated now. it looks sloppy and disgusting. I would appreciate if you'd release the source, so I can compile this myself with a higher limit, instead of releasing an update for everyone that way.
    I already have the source, but decompiling tends to mess up any form of Player Listener or Action listener.
     
  31. As I have previously stated, increasing the String Length to greater than 53 characters will prevent the use of colour codes in messages if a code is parsed on the 54th character. I have already modified the previous version to support the disabling of colour codes in order to permit untruncated messages to the limit which the game client allows. I will release this as Version 1.4 in the next few minutes. A new key in the config file "enablecolours" bypasses the truncating code and just broadcasts the message without colour code parsing. This is the safest way to broadcast a long message without the possibility of a client/server crash.
     

Share This Page