Inactive [CHAT/INFO/MISC] HelpMessage v0.4a - Display custom help messages at an interval [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Taien, Jul 3, 2011.

  1. Offline

    Taien

    HelpMessage v0.4a
    Helping people without lifting a finger!
    BukkitDev Thread

    Hello everyone. This is my first (released) plugin for bukkit. I designed this to help curb the constant stream of questions admins and mods have to deal with regarding ingame mechanics and server-specific information such as plugins.

    HelpMessage is fully customizable - you can set any number of messages, and they will be displayed at random at a preset interval. You can change the interval, the color of the brackets around "HelpMessage", the color of the title, the color of the message, and the name of the plugin itself (for ingame purposes).

    Currently, only ops can change settings/messages, but I will be including permissions in the next release.

    <Edit by Moderator: Redacted mediafire url>

    Be sure to check out my other released plugin, TreasureHunt, and help me get it moved to releases! See my signature!

    Commands:
    <font color="#339966">/hm</font> - displays information on the interval and number of messages currently loaded by the plugin.
    <font color="#339966">/hm <messageid></font> - display the message identified by the id.

    Op Commands:
    <font color="#ff0000">/hm delay <seconds></font> - set the interval between help messages.
    Ex: /hm delay 300
    <font color="#ff0000">/hm add <message></font> - add the message to the list of messages
    Ex: /hm add To go to spawn, type /spawn.
    <font color="#ff0000">/hm remove <messageid></font> - remove the message from the list of messages (message IDs are displayed in the chat tag for the message broadcast, i.e. [HelpMessage 12] is the 12th message).
    Ex: /hm remove 12
    <font color="#ff0000">/hm check <messageid></font> - same as the /hm <messageid> command. This will probably be deleted.
    <font color="#ff0000">/hm display <messageid></font> - broadcasts the specific message to everyone. (The interval will start counting from zero again. This does not affect the last displayed message in a sequential system.)
    Ex: /hm display 2
    <font color="#ff0000">/hm bracketcolor <colorid> </font>- sets the color of the brackets in [HelpMessage].
    Ex: /hm bracketcolor 2
    Ex: /hm bracketcolor a
    <font color="#ff0000">/hm titlecolor <colorid></font> - sets the color of the title in [HelpMessage].
    Ex: /hm titlecolor 6
    <font color="#ff0000">/hm messagecolor <colorid></font> - sets the color of the message after the tag.
    <font color="#ff0000">/hm title <title></font> - sets the title of the plugin to the entry (no spaces allowed). I.e. IngameHelp or HelpingYou or whatever.
    Ex: /hm title HelperBot
    <font color="#ff0000">/hm sequential <true/false></font> - sets the plugin to display sequentially(true) or randomly(false).
    <font color="#ff0000">/hm save</font> - saves the current message list and settings to the yml file.
    <font color="#ff0000">/hm load</font> - loads the message list and settings from the yml file.

    Planned Features:
    * Permissions support
    * Better color handling, i.e. accepting DARK_GRAY as well as 0-f.

    Known Bugs:
    * None!

    Changelog:

    Version 0.4a
    * Bugfix - NPE on first run of the timer from having no messages in the list
    * Bugfix - Index out of range exception if running sequential and having removed messages while the last message read was near/at the end of the list

    Version 0.4
    * Updated to CB 1337.

    Version 0.3a
    * Updated to CB 1185.
    * Made special improvements to the plugin to allow it to broadcast despite the current build's broadcast bug.
    * Added a function to display the messages sequentially instead of randomly.

    Version 0.3

    * Released!
     
    Last edited by a moderator: Nov 27, 2016
  2. Offline

    Taien

    Let me know if you'd like any additions to the program if you use it. :)
     
  3. Offline

    cloakfox

    How do i change color can u make an example pls ?[sheep]
     
  4. Offline

    spickinator97

    The download does not exist!
     
  5. Offline

    Taien

    Version 0.3a released!

    Sorry for the long response time, lol. But I added that to the description.

    Fixed, let me know if it happens again, I don't have a solid long-term host for the files.

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

    spickinator97

    Thank you!
     
  7. Offline

    SketchTechCraft

    It would be awesome to make it so it only does that when they ask the question. like mods type in an answer and tags. When some of the tags are met it answers the question
     
  8. Offline

    Taien

    You mean like...making it so when someone says key words it spouts something out?

    Also, you can make it display messages to everyone with /hm display 7 or whatever if you know the message numbers and are opped. I need to get it hooked up to permissions so you can allow people to use that command.
     
  9. Offline

    Taien

    Plugin works fine in 1240! Will finally be adding those permissions nodes today, starting with PermissionsEx. Come back in about ten hours when I wake up (I just got off 3rd shift :))

    I'll also be making major improvements to this plugin soon, such as the ability to use colors in your messages.
     
  10. Offline

    ryguy222

    Love the plugin! It's simple to use and it seems to work.
    When you implement permissions, if you could make it so we can disable those messages from being shown to certain members, i.e. VIP's etc.
     
  11. Offline

    supersullo

    Ok So i Downloaded it Now... I downloaded it and i dragged it into my plugins directory. Then I reloaded my server and typed /hm the response was 'Unknown Command Type 'help' For help'
    Im currently on 1317 does this mess up anything?
     
  12. Offline

    Gebob35

    how do we set how often they are announced
     
  13. Offline

    Taien

    '/hm delay 60' or whatever number of seconds.
     
  14. Offline

    Gebob35

    thnx shouldt of asked, shouldve read the commands lol, sorry
     
  15. Offline

    Milkywayz

    Great plugin man, i like the ability to add messages ingame. Very awesome :D
     
  16. Offline

    Taien

    Thanks :) I'll be updating this when I have time to allow for colors in the messages too.
     
  17. Offline

    Taien

    Updated to current build (which I realize won't be the CB for long, but I'll keep it updated after this).
     
  18. Offline

    surfarcher

    It's been throwing NPE for a few builds now... Running v0.4 under CB build #1392...
    Code:
    09:16:27 [WARNING] Task of 'HelpMessage' generated an exception java.lang.NullPointerException
            at me.taien.HelpMessageTimer.run(HelpMessageTimer.java:28)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:482)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Hope that's of some assistance... If I can help in any other way let me know!
     
  19. Offline

    Taien

    Fixed
     
  20. Offline

    surfarcher

    Thanks! Just need to wait for it to approve on bukkitdev now :p

    All available and works a treat in #1492! TY!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  21. say i would want to make the message "go to spawn by typing /spawn" yellow.
    i would type first "/hm add go to spawn by typing /spawn"
    then i would type "/hm messagecolor 6" (because 6 gets you yellow.)

    However when you change the color of anything in this plugin it changes everyother message too.
     
  22. Offline

    Taien

    Yep, that's correct. I'm going to be adding support for &a or &4 for colors in the next version, which I'll probably release tomorrow. Btw, this plugin still works fine in the newest build.
     
  23. Offline

    legionk6

    :) awesome but idont get it lol so ye..... or well :(
     
  24. Offline

    vrasta3333

    Wow nice plugin

    there is a way to remove the id of message near the HelpMessage?

    [HelpMessage 0] My first text

    I want [HelpMessage] My first text

    thank you
     
  25. Offline

    danpeters

    Hello,
    Is there a way you could make it so that you could turn off the automessages? I want the plugin mainly for the /hm display feature for FAQs that i program in.
     
  26. Offline

    NEILoRFCo

    How do I change the announce message?

    I don't want it to say HelpMessage, I want it to say Timer:
     
  27. Offline

    Taien

    I haven't worked on this in a while because it hasn't needed it, but I believe the command is /hm tag Timer:
     

Share This Page