BetterAnnounce
BetterAnnounce
What is it?
Just another broadcast plugin, but it is meant to use as little server resources as possible, and still have capabilities to rival other broadcast plugins on here! Currently supports color codes, prefixing messages and custom intervals. If you'd like to see more features, please make a comment or file a ticket requesting the feature you are looking for.
Why, if there are already a multitude of broadcast plugins?
The thing I most dislike about other plugins is that they are so wrapped up in providing support for this and for that because of commands, they do not see the performance drops they are getting from their plugins because so many different features are being used at a time. My plugin aims to change this, as it is a one-class, 100 line plugin and still has much of the capabilites that those very plugins have.
Permissions
In order to use this function, you must enable group-announce.
announcements: default: - 'BetterAnnounce rules!' - 'You can even use &4COLOR CODES&f!' - 'Real men use &3BetterAnnounce&f!' moderator: - 'Your administrator has installed &3BetterAnnounce' - 'Let them know they''ve made the right decision!' admin: - 'Good job admin, you''ve successfully installed &3BetterAnnounce&f!' - 'You can now change these messages, as well as the permission node they will apply to in the config!'
In this example, everyone would get the "default" announcements, but only people with the permission nodes
betterannounce.receive.moderator
and
betterannounce.receive.admin
would get the announcements under their respective categories.
Configuration
Very simple configuration, can even be edited on the fly and all changes will be immediately mirrored, with one exception - interval period. Interval changes will not take effect until the next reload.
Using contractions When using contractions such as can't, won't and we're, follow the steps below.
announcements: - 'I'm an announcement that won't work properly!'
announcements: - 'I''m an announcement that WILL work properly!'
Supported Color Codes / Formatting Codes
Check 'em out here!
Quote from maxpowa:Supported Color and Formatting Codes
Color Color Code Common Name █████████ &0 Black █████████ &1 Dark Blue █████████ &2 Dark Green █████████ &3 Dark Aqua █████████ &4 Dark Red █████████ &5 Purple █████████ &6 Gold █████████ &7 Gray / Grey █████████ &8 Dark Gray █████████ &9 Indigo █████████ &a Lime Green █████████ &b Aqua █████████ &c Pale Red █████████ &d Pink █████████ &e Pale Yellow █████████ &f White
Format Code Common Name Magic - makes the distorted-looking, constantly changing text &k Random Bold &l Bold Strikethrough&m Strikethrough Underline &n Underline Italics &o Italics Reset - Resets all text effects, including color (turns color white) &r Reset
WARNING: If a color code is used after a formatting code, the formatting code will be disabled beyond the color code point.Quote from MinecraftWiki:&cX&nY (&c X &n Y)
Would be seen as: XY, where as
&nX&cY (&n X &c Y)
Would be seen as: XY, and
&cX&nY&rZ (&c X &n Y &r Z)
Would be seen as: XYZ
If you would like to buy me a coffee each month, just throw a pledge on my Patreon page!
@Maxpowa
Thanks
@Pixiyo
Validated here
What's wrong with my YAML file? It's not sending any messages ingame anymore since i've added some messages. http://pastebin.com/QSF0yivD
Thanks
@FattyCraft
I'll try, the only issue is I'll have to add hooks for PEX so it will weigh the plugin down a bit, but only on first load (I'll get it to check if PEX is loaded, and if not, don't use any of the hook)
@Maxpowa
any way you could add support for pex?
@fragger505 @FattyCraft
Are you using PermissionsEx? I think it may be something to do with it, but I am still unable to pinpoint this issue.
EDIT: Got it. PermissionsEx, at the moment does not support permissions that are not defined in the permissions.yml or defined on plugin load instead, it ignores the permission nodes which come into play when the timer ticks, and only then. For this reason I recommend you to use a better permissions plugin such as PermissionsBukkit.
Same problem as FattyCraft, also would a timer per group impact server performance heavily?
Example:
announcements:
guest:
interval: 30
message:
- 'My announcement message'
member:
interval: 300
message:
- 'My announcement message'
admin:
interval: 180
message:
- 'My announcement message'
config contians Users and Guest. ... no deafault.... perms are added but messages arent being sent... Why not? ... i can upload the config if needed
Love this...will download to try it out!
@Bimmr
I could see that becoming a performance problem, because if I implement that, I'd have to create timers for each announcement, or run a timer that ticks every second. Either way it will add weight to the plugin - If I get more requests for that setup, I'll create a version branch that has that implemented.
Any hope in a config for a interval per msg? so you can have some apear move often the others
Version 0.0.5 is now up and waiting for approval! BukkitDev approval system is being very slow right now, so still waiting on that! Are you excited for the new permission based announcements?
Just for you users of 0.0.4 and below, you can update and continue to use your current configurations, you will just be unable to use the new group-announce feature!
@watdidyusaey
Putting your suggestion into the workings, shouldn't be overly hard to implement, so we'll see - Probably going to be set up in such a way so your config would be split into subsections, and the subsection headers would define the permission nodes for those announcements. For example:
And the permission nodes for that example would be
If that makes any sense to anyone other than me, woohoo!
This feature is now working, it will be in version 0.0.5
@Bomave
It's compatible with 1.3.* I guess I better upload a 1.3.2 version, so people better understand that.
EDIT: Waiting for approval on v0.0.4 (1.3.2).
1.2.5 is a bit old, isn't it? I have no idea if that needs to be updated but for usual people complain about plugins which are just updated before 1.3.
@Adrenalineq
Hmmm... Haven't seen that error before - I'll see if I can replicate it and possibly make a fix!
Edit: Mind sending me your BetterAnnounce config?
Edit2: Actually, now that I look at the stacktrace more, it looks like its a PEX issue - my plugin has nothing to do with the /home command and the line the error occurs at, is the closing bracket on the multithreading initializer.
Great plugin Max :D Ive got it for my server
@soccerstrike917
I have recovered the data, and am planning some new features... Hopefully going to be using the built in Bukkit task scheduler soon instead of the java.util one - not super high on my priorities right now though.
Github is a pain for me to use, as my internet connection is awful.
@Maxpowa
yo at bestbuy they can recover ur info but next time back up ur source on github :) nicejob