Inactive [INFO/MISC] SpoutBroadcast v1.5.2 - Broadcast Timed Messages Directly On The Screen [Spout][1.1-R4]

Discussion in 'Inactive/Unsupported Plugins' started by randomer679, Oct 8, 2011.

  1. SpoutBroadcast: Version: v1.5.2

    SpoutBroadcast is a plugin that displays text in the SpoutCraft window. This text can be set in the configuration file and can be overridden at any point via command. The text in the configuration file supports colour codes and the commands support colour names defined in the configuration file.

    Features:
    • A configuration file to change the various options including colours and time delays.
    • A file to store the messages and optionally their individual colours.
    • Alternative messages can be set for players without Spoutcraft (sent via chat). Add 'messageAlt: This is an alternate message for non-spoutcraft users' without the quotes below each message in your messages file. This allows you to send an alternate message with formatting supported by your chat plugin to these users.
    • A command to override the current text to broadcast important messages.
    • A command to display a popup for one player with a message to get their attention.
    • Supports permissions via Vault.
    • Global Override - Override The Message For Everyone Until A Delay Is Over. Supports colours defined in the configuration file.
    You can find all the SpoutBroadcast files here.


    Installation And Configuration is here.

    Demo Video:


    Changelog: Version 1.5.2 (Minor Update)
    • Updated to new event system and latest RB.

    Version 1.5 Fix 1 (1.5.1)
    • Fixed a small typo (comma instead of a full stop) preventing the Y position from being changed.
    Version 1.5
    • Improved support for people without Spoutcraft. Now supports sending an alternate broadcast message to people without Spoutcraft via chat.
    • When using the command /sbroad player if that player does not have Spoutcraft they will receive the message via chat. You will also get a message saying that the player will not give you any notification as they do not have Spoutcraft.
    • Now supports any permission plugin supported by Vault! Just grab the latest Vault version from here and put it in your plugins folder!
    Version 1.4 Fix 2 (1.4.2)
    • Two bugs pointed out by @microapple have been fixed (hopefully). Now when people connect there will not be a GenericLabel warning printed to the console and also they will be given the current message instead of "Your Text Here".
    • Next update will include new features so thought I'd release this quick bug fix for now :)
    Version 1.4 Fix 1 (1.4.1)
    • Fixed lots of bugs (including a stack overflow) as a result of poor coding when I first started this plugin.
    • Fixed other bugs introduced as a result.
    Version 1.4
    • Added basic none Spoutcraft functionality (if a player does not have Spoutcraft they will receive any broadcasts via chat but not colour support, yet).
    Version 1.3 - API Release
    • Added a basic API for the player override and the global override with doc explanation. Just import me.randomer679.SpoutBroadcast.API.* and create an instance of API.
    Version 1.2
    • Updated to use the new configuration system. Config files are the same (except a few new options).
    • Added a configuration option to change the location of the broadcast label. The co-ordinates start from the upper left corner.
    • Added a configuration option to use the default values just in case you mess up ;)
    Version 1.1 Fix 2 (1.1.2)
    • Fixed a bug that could cause this plugin to interfere with other plugins that create a pop-up with buttons.
    Version 1.1 Fix 1 (1.1.1)
    • Fixed a bug that required PEX for it to work.
    Version 1.1
    • Now uses YAML configuration files.
    • No longer requires the gson lib.
    • More options to change the colour in more places e.g. now supports scheduled broadcast colours.
    • Changed the way player override works. Now presents a popup with the message and an ok button. Once pressed the button alerts the sender that the player has acknowledged the message.
    • Now supports permissions! PermissionsEx only at the moment due to favouritism :p (and I have no experience with others).
    • Minor bug fixes.
    • Possibly other things I've forgotten.
    Version 1.0
    • Released.
     
  2. Offline

    Imm0rt41

    FIRST, ive always wanted to say that

    also, does this require the client side mod of spout?
     
  3. Offline

    gameswereus

    Second. This is a really awesome plugin.
     
  4. If you mean SpoutCraft then yes. It requires SpoutCraft to be able to display the messages.
     
  5. Offline

    crysis992

    Hmm it doesnt work for me.
    I tested it with RB of bukkit & spout + Latest dev build from bukkit + spout.
    I always get this error message:
    Code:
    2011-10-09 03:02:44 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'sbroad' in plugin SpoutBroadcast v1.1
        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 net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        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 org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NoClassDefFoundError: ru/tehkode/permissions/PermissionManager
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.onCommand(SpoutBroadcast.java:53)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 13 more
    
     
  6. I think I may know what I've done wrong there just testing :)

    EDIT: It's supposed to be usable without a permissions plugin. In that case OPs would be the only ones able to use the commands. However I made a slight error that caused a permissions plugin (PEX) to be required. Fixing and uploading new build :)
    EDIT 2: Fixed and uploaded :)
     
  7. Offline

    gameswereus

    Glad to see that error fixed :p I will put this on my server to test.
     
  8. Offline

    MonsieurApple

  9. Offline

    dr.dreadful

    So if you lack Spoutcraft, you will not see these messages? Could this plugin be made to display the messages in the chat window if the player uses the regular Minecraft client?
     
  10. No this plugin uses features in the Spoutcraft client that are not available in the vanilla client.
     
  11. Offline

    CraftyMclovin

    Does everyone on my server need to be using spoutcraft to see these broadcasts?
     
  12. Offline

    ChrisX930

    yes, all Users they`re want the SPOUT-Features (and Spoutbroadcast) need Spoutcraft
     
  13. Offline

    CraftyMclovin

    Ohh, that's a shame.. if it supported both spout and vanilla it would have been perfect but not many people trust spout.. they prefer the standard MC launcher... owell =(
     
  14. Offline

    Wulfspider

    You can't modify the screen on a vanilla client like such. People have no reason not to trust it over any other client mod they may be using. All of the Spout project source is on GitHub for everyone to see and anyone can look and see that it has nothing malicious in it.
     
  15. Offline

    CraftyMclovin

    I completely agree, i use spout craft my self.. but when i suggest to people they should use it they say nah they would rather stick with the vanilla client =/
     
  16. Offline

    Taketheword

    I agree with one of the earlier posts, can you make it so if they arn't on spoutcraft, it just sends to the chat?
     
  17. Errrr possibly I assume you mean just to the people without it? Otherwise it would get really annoying for everyone else who has it :p
     
  18. Offline

    Taketheword

    yes :p
     
  19. Offline

    TomYaMee

    Code:
    2011-12-18 20:12:27 [SEVERE] Could not load 'plugins\SpoutBroadcast.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:175)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:127)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Caused by: java.lang.StackOverflowError
        at java.util.AbstractMap.<init>(Unknown Source)
        at java.util.HashMap.<init>(Unknown Source)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:26)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:31)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:31)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:31)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:31)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:31)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:31)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:31)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:31)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:31)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:31)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
        at me.randomer679.SpoutBroadcast.SpoutFeatures.<init>(SpoutFeatures.java:31)
        at me.randomer679.SpoutBroadcast.SpoutBroadcast.<init>(SpoutBroadcast.java:27)
       ........
    help?
     
  20. Does this happen every time?
    EDIT: Also which version?

    Thank you for alerting me to this I forgot to test before releasing the update :) I have fixed this in the latest version that should have been approved on bukkitdev by the time you read this :) also the plugin may have accidentally used lots of cpu and memory before due to my poor coding skills at the time but thanks to this error I have fixed it :)

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

    TomYaMee

    so.... onli one colour per message?
     
  22. Thats a limitation of spout and spoutcraft :)
     
  23. Offline

    TomYaMee

    ok got it... thx for this awesome plugin :D
     
  24. No problem :D thanx for saying thanx :D :p
     
  25. Offline

    Wulfspider

    That isn't really a limitation on our part. You could easily support color codes and allow users to customize the message with them.
     
  26. Offline

    microapple

    There seams to be a bug in this plugin... Everytime a user logs in, the displayed text is "Your Text Here", and this message is displayed on the console: "GenericLabel belonging to SpoutBroadcast does not have a default size!". After the "Your Text Here", the plugin does cycle through *all* of the messages we placed in the messages.yml file.

    Not sure what is causing this, but we love the plugin (a less obtrusive "Tips" method), and would love to have this fixed.

    Thanks for the time you spent making this plugin!
     
  27. How I only seem to be able to change the colour of all the text in a label? :)
    EDIT: By the way he means each message can only be customized with one colour :) for example you can't make the text rainbow coloured :)

    Oh right thanks for letting me know I'll have a look at that :)

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

    Michael Rhodes

    I am really looking forward to putting this on my server, I will check it out now... and I know I may get some heat for this, but I LOVE that song in the background of the video. I completely describes the kids that I do not allow on my server :)
     
    mahari3 likes this.
  29. Haha he writes some weird songs but they are quite good :) and thanks let me know what you think! :)

    Sorry I forgot all about this but I've just released a fix so please test the latest version and let me know if these have both been fixed :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  30. You know, i dont understand how to make Spout work?
    I have Spout.jar in my plugins and i dont know what else to do? how to have spoutcraft CLIENT? how to install it??? im horrible with these things and my english not best possible
     

Share This Page