Cuberite Forum

Full Version: Broadcast
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Broadcast
Is a plugin that allows you to broadcast unlimited amount of messages each few seconds. You can use it for example to broadcast  people that they should follow the rules or something. But you can also use it to advertise for ranks or something. You can choose whatever you want.

Commands
/broadcast
This command simply broadcasts the next message.

Permissions
  • Broadcast.command
  • a command that sends a new message
Configuration
  • SecondsBetweenMessage = 60
  • sets the amount of seconds between each message
    Random
  • if it is enabled you get a random message instead of following the line.

    How to add Messages
    In the Config.ini at the [Messages] section just add a new line and do:
    previous number= message. For example if i have 3 messages then
    4= This is a test message
So i kinda didn't want to learn for a test tomorrow so i completly rewrote this plugin Wink You now have unlimited messages and you can change the color of each word in a message Wink
I can't quite grasp how plugin authors just assume that all the other will know what a plugin does, so they start by plugin name and continue with the commands, permissions and such, without ever describing in three sentences WHAT the plugin does and WHY would I want itTongue
I've noticed this already on the minecraftforum with mods, now the bad habit is getting a foothold here as well?
Better now? >.< Wink
yup, thanks Smile
Please update it, i really need this to broadcast ads on the server Smile

[16:27:38] cPluginManager.AddHook(): Deprecated format used, use cPluginManager.AddHook(HOOK_TYPE, CallbackFunction) instead. Fixing the call for you.
[16:27:38] Stack trace:
[16:27:38] [C](-1): AddHook
[16:27:38] Plugins/Broadcast/main.lua(10): (no name)
[16:27:38] Stack trace end
[16:27:38] LUA: error in function 'new'.
argument #2 is 'string'; '[no object]' expected.

[16:27:38] Stack trace:
[16:27:38] [C](-1): (no name)
[16:27:38] [C](-1): (no name)
[16:27:38] [C](-1): cIniFile
[16:27:38] Plugins/Broadcast/main.lua(26): LoadSettings
[16:27:38] Plugins/Broadcast/main.lua(14): (no name)
[16:27:38] Stack trace end
[16:27:38] Error in plugin Broadcast calling function Initialize()
[16:27:38] Error in plugin Broadcast: Cannot call the Initialize() function. Plugin is temporarily disabled.
It should work fine now Smile
It works! Thank you!
When I attempt to download it says "The specified attachment does not exist." Is the file missing?
(02-08-2016, 05:43 AM)eszlarie Wrote: [ -> ]When I attempt to download it says "The specified attachment does not exist." Is the file missing?

The forums are currently being transferred to the new domain.  Forum posts are transferred, but attachments are still on the other site.
Pages: 1 2