Inactive [ADMN/CHAT/MISC] Broadcaster v2.1.4 - Broadcast all of your messages! [2060]

Discussion in 'Inactive/Unsupported Plugins' started by WNxRev, Jul 9, 2011.

  1. Offline

    WNxRev

    Broadcaster - Broadcasting all of your messages!​
    Version: 2.1.4​
    Broadcaster allows you to broadcast an infinite amount of messages to specific users on your server. Broadcaster is lightweight, easy to configure, and powerful, all in one quick and easy to use package. Simply download it, drag and drop to your plugins folder, and restart. A configuration file will be generated and you can edit it as your server runs. When you're done editing your configuration file, simply type "broadcaster reload" on the console and your configuration file will be loaded without disturbing your users. Feel free to make any suggestions you would like in the plugin in one of the replies below. :)
    Features:
    • Allows you to broadcast as many messages as you want to select users on your server
    • You're allowed an infinite number of messages to send to your users. The only thing you have to do is configure more messages in the configuration file and update the number of messages to reflect the new number
    • Manually broadcast a message by typing "/broadcaster broadcast [message number]" when you're in-game or through the console
    • Very lightweight, easy-to-use, and comprehensive setup allowing you to tweak the plugin to your server's needs
    • Permission support either using OP or SuperPerms (configurable in the plugin setup)
    • Coloring is available using hex codes in the configuration file (example: &4Message here)
    • Allows you to give select users a permission node so they no longer see the message. This is useful for creating a message in which only newly-registered users can see so that they can register on your forums or do some required action like reading the rules
    • All commands that work in-game for managing the plugin also work through the console for your convenience
    Planned Features:
    • None at the moment, feel free to make a suggestion
    Commands:
    • /broadcaster reload - Reloads the plugin. Executable either through the console or in-game and allows you to reload the configuration file without having to restart the server and annoy your users
    • /broadcaster preview [message number] - Allows you to preview a message before sending it to all of your users. Usage would work as follows: "/broadcaster preview 1" and this would allow you to preview Message1 in the configuration file
    • /broadcaster broadcast [message number] -Allows you to send a broadcast to everyone that doesn't have the specific broadcaster.exemptfrommessage permission node associated with that message. For example, "/broadcaster broadcast 2" would broadcast a message to all users without the permission node "broadcaster.exemptfrommessage2"
    Permission nodes:
    • "broadcaster.use" - Allows a player access to the broadcast and preview commands ("/broadcaster broadcast" and "/broadcaster preview")
    • "broadcaster.reload" - Allows a player access to the reload command ("/broadcaster reload")
    • "broadcaster.exemptfrommessage[message number] - Prevents a player from seeing a specific message. For example, "broadcaster.exemptfrommessage4" prevents all players with that permission node from seeing Message4.
    Configuration file

    Configuration file setup on Github

    Changelog:

    Version: 2.1.4
    • Should be the last of the configuration file issues...
    • Prepping for in-game commands to customize messages
    Version: 2.1.3
    • Added further stability in the configuration file, ensuring that options aren't overwritten
    • Added plugin metrics for me to keep track of usage; you're able to opt-out if you don't want to help me out
    • Updating to support CB #2060 (beta build)
    Older Versions (open)
    Version: 2.1.2
    • Fixed a permission bug involving "broadcaster.use" where permissions were improperly assigned
    Version: 2.1.1
    • Fixing a minor bug with the configuration file always overwriting what the user puts in
    Version: 2.1
    • Added increased customizability for Op permission type users
    • Reorganized some of the code
    • Added a offset so that messages aren't all broadcasting at the same time
    Version: 2.0
    • Initial release of Broadcaster
    Version: 1.4.1
    • Updated to support CraftBukkit Beta Build 1.2.3-R0.1 (#2034)
    • Removed support for Nijikokun's Permissions plugin (it's broken and he's not updating)
    Version: 1.4
    • Allows execution of commands through the console as well as in-game
    Version: 1.3.3
    • Fixed bug with commands not registering, thanks to @HunterTTP for pointing out another bug
    Version: 1.3.2
    • Fixed bug while loading the config file, thanks to @HunterTTP for pointing it out
    Version: 1.3.1
    • Readded Permissions and OP integration
    • New option available in the configuration file, please regenerate it if you're updating
    Version: 1.3
    • Added support for the built-in Bukkit permissions
    • Removed support for the third-party Permissions plugin
    Version: 1.2.2
    • Prevented message from broadcasting when no one is online; thanks @Zathras
    Version: 1.2.1
    • Renamed 'broadcastdonator.seemessage' to 'broadcastdonator.exemptfrommessage'
    • Fixed minor OP support bug
    Version: 1.2.0
    • Restructured Permission management
    • Restructured command management
    • Added OP support
    Version: 1.1.0
    • Added ability to hide the broadcast for certain users
    Version: 1.0.1
    • Added /bd preview
    Version 1.0.0
    • Initial release
     
    cheracc, Joshuame13 and Zathras like this.
  2. Offline

    WNxRev

    I did realize that the majority of plugin authors still use the third-party plugin, and I'm sorry for pushing a version that forces. Version 1.3.1 should work fine for you as it'll allow you to change your permission manager without restarting the server. The default is the third-party plugin. Sorry for the potential inconvenience; all fixed.
     
  3. Offline

    Zathras

    Thanks. I think so. It'll still be a minor pain to redo the config file again from scratch since I don't know what's new. It'd be nice if you listed it like a copy & paste so I could just add the new line(s) to my existing config file. Fortunately this is not a complex config file, unlike some others. But just asking that you think about how easy you can make it for admins to upgrade.
     
  4. Offline

    WNxRev

    If you don't want to regenerate your config file, the only new line is the following:
    Code:
    Permission-Manager=Permissions
    There's a description of each line in the original post now. For example, this particular option can be changed from Permissions to OP or to SuperPerms (SuperPerms being the integrated Bukkit permission manager).
     
    Zathras likes this.
  5. Offline

    Zathras

    Excellent. Thanks for doing this.
     
  6. Offline

    WNxRev

    No Problem. Glad you enjoy it.
     
  7. Offline

    WNxRev

    Version: 1.3.2
    • Fixed bug while loading the config file, thanks to @HunterTTP for pointing it out
     
  8. Offline

    HunterTTP

    The update you fixed my error up perfectly! Will recommend to other server hosts!
     
  9. Offline

    WNxRev

    In the config.yml file, under Permission-Manager, change "Permissions" to "OP". Refer to the original post for detailed documentation on the config file.
     
  10. Offline

    HunterTTP

    Lol yah I realized that after a minute so I tried to edit the post before it was too late ;) The only other problem I'm having is that even after the plugin is perfectly installed, OP and all. I set myself OP in the server, but none of the /bd commands work. Any thoughts?
     
  11. Offline

    WNxRev

    Version: 1.3.3
    • Fixed bug with commands not registering, thanks to @HunterTTP for pointing out another bug
     
  12. Offline

    RTRD

    Screenshot? :p :confused:
     
  13. Offline

    WNxRev

    Of what?
     
  14. Offline

    RTRD

    Of how it looks like in-game?
     
  15. Offline

    WNxRev

    It looks like a chat message depending on how you format it...
     
  16. Offline

    RTRD

    Nvm then...

    I just tought that the thread looked a bit wierd with only text. You should add a screenshot.
     
  17. Offline

    HunterTTP

    Works perfectly now! I will be putting this on all my free servers. I'm learning java at the moment, hopefully I can make my first plugin soon ^_^

    -Hunter
     
  18. Offline

    WNxRev

    Glad it works for you. :)

    Regarding the plugin, if you have any questions, I'm more than happy to help.
     
    HunterTTP likes this.
  19. Offline

    Seo

    Exactly what i need, waiting for update so it broadcast auto :)
     
  20. Offline

    WNxRev

    It already automatically broadcasts if you set up the configuration correctly.
     
  21. Offline

    Seo

    Haha how did i miss that xD
     
  22. Offline

    Monstertke

    Would it be possible to add a 2nd and/or 3rd message, with the appropriate permissions nodes?
    I am sort of spamming the default users on my server every three minutes to make them register on the site.
    It would be nice if I could also send a "donate PLZ". message to the next rank up on a different interval.

    Thanks.
     
    xREVOLUT1ONZx likes this.
  23. Offline

    WNxRev

    I'm currently working on an easy and simplistic way of doing this; it's a little trickier than I expected but I should be able to manage. Thanks for the request.
     
  24. Offline

    godsyn

    Code:
    >bd
    00:50:57 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'bd' in plugin BroadcastDonator v1.3.3
            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:358)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:354)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:506)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:485)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
            at xrevolut1onzx.broadcastdonator.BroadcastDonator.onCommand(BroadcastDonator.java:63)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 7 more
    >version
    00:52:21 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1102-g24a198d-b1231jnks (MC: 1.8.1)
    
    config.yml:
    Code:
    #Edit the configurations to your liking
    #Fri Jul 29 21:55:55 EDT 2011
    Recurring-Broadcast=true
    Permission-Manager=SuperPerms
    Message-To-Broadcast=[Server] Enjoy this server? Consider donating to help fund it\! Donate at http://mc.godsyn.com via paypal.
    Time-between-messages-in-minutes=360
    
     
  25. Offline

    WNxRev

    Thanks for pointing out the error. I'll get to it, but I'll be updating to the new recommended build: #1240. Just came out five minutes ago.

    Do a fresh install on CB build 1240 and see if you get the same error. Delete the config, redownload, drag it in plugins, and launch. Then, shut down the server and edit the config and then restart. Shouldn't be a problem. Just did a full test. Works on the latest recommended CB.

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

    godsyn

    after..
    Code:
    /etc/init.d/minecraft stop && wget [URL]http://ci.bukkit.org/job/dev-CraftBukkit/1240/artifact/target/craftbukkit-0.0.1-SNAPSHOT.jar[/URL] -O craftbukkit-0.0.1-SNAPSHOT.jar && wget [URL]https://github.com/downloads/xREVOLUT1ONZx/My-Plugins/BroadcastDonator.jar[/URL] -O plugins/BroadcastDonator-1.3.3.jar && rm plugins/BroadcastDonator/config.yml && /etc/init.d/minecraft start && /etc/init.d/minecraft stop && nano plugins/BroadcastDonator/config.yml && /etc/init.d/minecraft start
    Code:
    >bd
    23:15:58 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'bd' in plugin BroadcastDonator v1.3.3
            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:358)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:354)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:506)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:485)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
            at xrevolut1onzx.broadcastdonator.BroadcastDonator.onCommand(BroadcastDonator.java:63)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 7 more
    >version
    23:16:18 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1112-g54a13b2-b1240jnks (MC: 1.8.1)
    23:16:18 [INFO] This server is also sporting some funky dev build of Bukkit!
    
    config.yml:
    Code:
    syn@synserv:~/minecraft$ cat plugins/BroadcastDonator/config.yml
    #Edit the configurations to your liking
    #Mon Oct 03 23:03:44 EDT 2011
    Recurring-Broadcast=true
    Permission-Manager=Permissions
    Message-To-Broadcast=Enjoy this server? Consider donating to help fund it\! Donate at http://mc.godsyn.com via paypal.
    Time-between-messages-in-minutes=360
    
    I'm using PermissionBukkit (an extension of bukkit's built in permissions):
    That may be the issue.. I'm not sure. I've tried both "SuperPerms" and "Permissions" as the "Permission-Manager", to no avail.
     
  27. Offline

    WNxRev

    My bad, I failed at reading the first line of the error message. I haven't integrated console commands. Try executing the command in-game and telling me how that goes. I'll start on console integration right away; sorry about that. :/

    @godsyn

    V1.4 should allow you to input commands on the console now
    Sorry for the inconvenience

    Version: 1.4
    • Allows execution of commands through the console as well as in-game


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

    godsyn

    Code:
    >bd
    03:15:01 [INFO] /bd [broadcast/preview/reload]
    >bd preview
    03:15:05 [INFO] [BD] Preview: Enjoy this server? Consider donating to help fund it! Donate at [URL]http://mc.godsyn.com[/URL] via paypal.
    >bd broadcast
    03:15:13 [INFO] [BD] Enjoy this server? Consider donating to help fund it! Donate at [URL]http://mc.godsyn.com[/URL] via paypal.
    >bd reload
    03:15:20 [INFO] [BD] Reloading...
    03:15:20 [INFO] [BD] Reloaded
    03:15:20 [INFO] [BD] Plugin reloaded
    >version
    03:15:28 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1112-g54a13b2-b1240jnks (MC: 1.8.1)
    03:15:28 [INFO] This server is also sporting some funky dev build of Bukkit!
    
    Thank you.
     
  29. Offline

    WNxRev

    No problem. :)
     
  30. Offline

    godsyn

  31. Offline

    WNxRev

Share This Page