-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAutomticBrodcast
45 lines (38 loc) · 1.17 KB
/
AutomticBrodcast
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Made by MonkeDFA, give credit!
on load:
updateBroadcasts()
on load:
updateBroadcasts()
every 5 minutes:
if {autobroadcast} is not false:
set {_size} to size of {broadcasts::*}
broadcastMessage({broadcasts::%{_size}%})
remove {broadcasts::%{_size}%} from {broadcasts::*}
if size of {broadcasts::*} is 0:
updateBroadcasts()
command /bc <text>:
description: The command to do the boradcast (shorcut).
permission: broadcast.admin
permission message: &cYou dont have perms to do that!.
usage: &c/bc <message/toggle>
aliases: /broadcast
trigger:
if arg-1 is "toggle":
if {autobroadcast} is not false:
set {autobroadcast} to false
send "&cAuto broadcast has been disabled."
else:
clear {autobroadcast}
send "&aAuto broadcast has been enabled."
else:
broadcastMessage(arg-1)
function broadcastMessage(m: text):
broadcast ""
broadcast colored {_m}
broadcast ""
function updateBroadcasts():
clear {broadcasts::*}
add "&bChange Broadcast Message here" to {broadcasts::*}
add "&bEdit the Broadcasts in this area" to {broadcasts::*}
add "&bCustomize Broadcast Message here" to {broadcasts::*}
add "&bUpdate the broadcasts here" to {broadcasts::*}