Simple Announce Plugin

Discussion in 'Archived: Plugin Requests' started by xMachoMancha, Apr 3, 2014.

  1. Offline

    xMachoMancha

    Hello all, today I am requesting a simple plugin for users to run a few commands, each accessed by a different permission nodes. For each command I want the user to type something like:

    "/trade <message>" and have their custom message announced in chat and show as:

    "[Trade] xMachoMancha Trading 10 gold for a diamond!"

    "/battle <message>"

    "[Battle] xMachoMancha Meet me at the orange house to fight!"

    "/help <message>"

    "[Help] xMachoMancha Can a MOD please remove this claim for me?"

    As you can see, when they type the commands, their request, name and message all show up. It would be best not to include their group prefix. Please include the option to configure color codes, prefixes, etc.

    Regards
     
  2. Offline

    EvilWitchdoctor

    I can do this but it's nearly midnight where I'm at. ;)
    if nobody's stepped up to help you out by tomorrow then I could make this
     
  3. Offline

    87pen

    If you use essentials the /help thing will override essentials /help, I might make this so if I do I wanna know what you want instead of /help if you are using essentials.
     
  4. Offline

    Synapstic

    For the help message you want you can just use Essential's /helpop [message] and maybe give everyone access to the permission node to see the helpop messages? or just give your staff the permission node to make them only able to see the message.

    Also your topic title, 'simple announce plugin', is sort of misleading :p
     
  5. Offline

    xMachoMancha

    No one has offered to help me so far, so if you are willing to help, that'd be great! Thanks for even commenting :)

    Well technically they are considered to be player announcements. I am already using /helpop, but this is only useful when a staff member is online. With /help, it looks less directed towards a staff member.

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

    timtower Administrator Administrator Moderator

    xMachoMancha https://www.dropbox.com/s/im8w6pnip6l36y1/SimpleBroadcast.jar
    Code:
    commands:
      Trade:
        permission: simplebroadcast.trade
        permission-message: You are not allowed to use this
      Battle:
        permission: simplebroadcast.battle
        permission-message: You are not allowed to use this
      Help:
        permission: simplebroadcast.help
        permission-message: You are not allowed to use this
    permissions:
      simplebroadcast.trade:
        default: true
      simplebroadcast.battle:
        default: true
      simplebroadcast.help:
        default: true
     
  7. Offline

    xMachoMancha

    Thank you so much for stepping up to do this for me! Everything works great, however there is one downfall. Apparently when I use any of the commands it will just say the topic and the text (e.g. "[Help] Can a MOD please remove this claim for me?").
    As you may notice from that text, the player name doesn't show at all. Please add the ability to show your player name next to the topic and message. Thanks again!
     
  8. Offline

    timtower Administrator Administrator Moderator

    xMachoMancha Whoops, silly mistake from my side.
    Fixed, same download link
     
    xMachoMancha likes this.
  9. Offline

    xMachoMancha

    timtower Can I also configure the format code for someone's player name without making it the same as the message?
     
  10. xMachoMancha HI! I don't know if you still want to use timtowers plugin, but I made a better plugin for you! It's highly configurable and you can add an infinite amount of commands to be announcement commands! You can also configure the format of the broadcast message in the config as well! this includes color codes.
    https://www.dropbox.com/s/szdh0kly5q1esw5/SimpleAnnounce.jar

    Permissions:
    /sa help - simpleannounce.help
    /sa list - simpleannounce.list
    /sa addcmd - simpleannounce.addcmd
    /sa delcmd - simpleannounce.delcmd
    /sa info - simpleannounce.info
    /sa reload - simpleannounce.reload



    ~ps: tell me if I misspelled any of the permissions. Oh, and just remember that any command that you add to be an announcement command will override other commands with that label, For Example: If you have an announcement command that's labeled 'help' the command '/help' will be dedicated to the announcement plugin and not essentials, if of course you have essentials or anything that registers the command /help.
     
    xMachoMancha likes this.
  11. Offline

    xMachoMancha

    PetrosPolemistis Wow, this is truly amazing, even added a /reload feature. Perfect for what I need. timtower Thank you for your help also!
     
  12. Offline

    timtower Administrator Administrator Moderator

    Just made it exactly as requested.
     

Share This Page