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

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

  1. Offline

    RedFalKon

    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. Offline

    Grimmy777

    Where can i find a list of all the color codes? Thanks!
     
  3. Offline

    RedFalKon

    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.

    Check for the Colour Codes section in the OP

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

    Zathras

    @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.

    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());
    }
    


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

    juloo

    To-Do
    • Add a command '/msgbroadcast 1' too see the 1st message

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

    ibreaktoucher

    is it compatible with 1.0.0 ?
     
  7. Offline

    xKoKSii

    something like /showmsg that shows all msgs will be really nice :)

    yaeh thats also nice
    yes it is

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

    juloo

    i've a other good idea : $s underline s$
    $b bolt b$
    $i italic i$
     
  9. Offline

    RedFalKon

    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.
     
  10. Offline

    juloo

    with spout & spoutcraft
     
  11. Offline

    xKoKSii

    Is it possible that u add my command in the next update?
     
  12. Offline

    number1_Master

    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.
     
  13. Offline

    number1_Master

    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.
     
  14. 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!
     
  15. Offline

    Ceitzer

    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?
     
  16. Offline

    OZ4RK

    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.
  17. Offline

    DaEgo

    post ur filter in CODE
     
  18. Offline

    OZ4RK

    I'm sorry, my "filter"? I already posted my log in code. Do you want my .properties?
     
  19. Offline

    DaEgo

    oh sry wrong plugin
    i just can say that it works perfect on my server CB 1602
     
  20. Offline

    Plutonium2222

    When we make a new line with $n, it remove the precedent color
    -Sorry if I'm bad in English I'm french x).
     
  21. Offline

    Niemand

    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. ;)
     
  22. Offline

    GrayHowler

    When i tried to use russian letters in automessages.properties and use /reloadmsg i've got
    How could I fix that
    PS: Sorry for my bad english :)
     
  23. Offline

    OZ4RK

    Gunna try deleting all properties files and redownloading. Really love the simplicity of this plugin and hope it works/
     
  24. Offline

    ninjasauce1

    Very interesting, however, I don't want the members of my server to see these messages! Could there be some permission support for as to who can see these messages? That'd be very helpful <3
     
  25. Offline

    Niemand

    This brings in a new idea... or an extension of the quoted one:

    Make 5 blocks with messages. Every block has its own permission-node. So for example:
    block one:
    msg=blabla
    block two
    msg=testmessage
    block three... and so on.

    Now the permission-nodes would be like:
    automsg.block.one to see block one.
    automsg.block.* to see them all.
    automsg.hide to see no messages.

    And for every block you can set if random or not... and how often it is shown. oh! and the player-dependency and display-rate. :D

    I guess I could write down a combined extension-idea for this plugin... in .config-file style.
     
  26. Offline

    NuclearServer

    Can you add a command to be able to broadcast at anytime if you need to instead of having to wait to preview your broadcast?
     
  27. Offline

    sunbinyuan

    Could I have this plugin's source?
     
  28. Offline

    number1_Master

    just make the time lower

    i believe this is inactive D:

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

    Huffmanbran

    Plugin still dead :(
     
  30. Offline

    number1_Master

    :'(
    :'( :'(
    we must protest !

    just saw this post (sorry for being late)
    actually it isn't (for me):
    Code:
    2011-12-14 20:43:13 [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)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 7, 2016
  31. Offline

    MineFreab

Share This Page