Blockland Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2017, 04:10:03 PM

Home Help Login Register
+  Blockland Forum
|-+  Blockland Files
| |-+  Add-Ons
| | |-+  In-Server announcement rotator
Pages: [1] 2 3
Author Topic: In-Server announcement rotator  (Read 6975 times)
Pecon

« February 02, 2015, 03:53:58 PM »

As per request, I have released this mod which allows you to make reoccurring announcements like the ones you see in many servers. All announcements are handled through prefs and will therefore remain persistent between server restarts.

Commands:
/addAnnouncement <words> (You can use markups like the <color> and <font> tags here)
/startAnnouncements
/stopAnnouncements
/clearAnnouncements (Super-Admin only)

If announcements were enabled when the server shut down, they will still be enabled when you start the server again (assuming your prefs saved).

« Last Edit: February 02, 2015, 03:55:35 PM by Pecon » Logged
Ad Bot

Full members do not see ads

Hawt

« February 02, 2015, 05:10:17 PM »

Looks cool! Downloading.
Logged
Tee

« February 02, 2015, 05:22:04 PM »

Oh my god yes
Thank you pecon!
Logged
Sami2ss

« February 02, 2015, 06:02:37 PM »

I hope this doesn't leave a blank dark stripe on the bottom of your screen all the time when there is no announcement like the other announcement mod.
Logged
releasetheblocks2
« February 02, 2015, 09:09:31 PM »

OH MY FUCKING GOD!
AMAZING, it makes me happy after knowing that evo_ fucked up my donation addon request
Logged
jes00

« February 03, 2015, 06:36:07 AM »

I hope this doesn't leave a blank dark stripe on the bottom of your screen all the time when there is no announcement like the other announcement mod.
Nope. This announces things in the chat.
Logged
-Blok-

« February 03, 2015, 03:20:21 PM »

It's working, but it's not appearing in my prefs. What do? I'd like to change the message delays and stuffs.

It also keeps repeating for me, sometimes in less than the preset 2 minutes:



And I have like 6 or 7 announcements made, not just 2 or 3, so I don't know why it would repeat an announcement 2 or 3 times.
« Last Edit: February 03, 2015, 03:50:27 PM by -Blok- » Logged
Pecon

« February 03, 2015, 04:26:38 PM »

It's working, but it's not appearing in my prefs. What do? I'd like to change the message delays and stuffs.
These are not RTB prefs. You can change the delay using $pref::server::announcementDelay.

As for the reapeating messages, it's probably because of something I didn't think of with the ability to start/stop the announcements. Do /stopannouncements, wait two minutes, then start them again. I'll probably release an update that addresses this.
Logged
-Blok-

« February 03, 2015, 04:44:19 PM »

These are not RTB prefs. You can change the delay using $pref::server::announcementDelay.

As for the reapeating messages, it's probably because of something I didn't think of with the ability to start/stop the announcements. Do /stopannouncements, wait two minutes, then start them again. I'll probably release an update that addresses this.
Ok, and is there any way to delete a specific announcement/edit one, or do I have to delete them all and start over?
Logged
Pecon

« February 03, 2015, 04:52:25 PM »

Ok, and is there any way to delete a specific announcement/edit one, or do I have to delete them all and start over?
You can close your server and open the /config/server/prefs.cs file to manually edit the announcements.
Logged
Laneer

« February 26, 2015, 06:10:45 AM »

 /10
Logged
.Kong123.
« March 02, 2015, 05:12:28 PM »

Instead of: [Tip] can we change it to something else?

Also nice job on this.
Logged
Pecon

« March 02, 2015, 05:30:23 PM »

Instead of: [Tip] can we change it to something else?
It doesn't do anything by default. You have to format everything on each line.
Logged
.Kong123.
« March 02, 2015, 06:31:55 PM »

It doesn't do anything by default. You have to format everything on each line.
Oh alright I see. Also, what about coloring, is the format the same, like: <color:ffffff>
Logged
Pie Crust

« March 02, 2015, 06:36:06 PM »

Judging from my chatlog before adding stripMLControlChars, yes.
Logged
Pages: [1] 2 3  


Login with username, password and session length

Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Page created in 0.029 seconds with 18 queries.