Date: 2015/02/25 12:54:10 UTC-08:00
Type: Denizen Script
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
# +--------------------
# |
# | C h a t A l e r t
# |
# | Makes a little noise when somebody speaks.
#
# @author mcmonkey
# @date 2014 / 11 / 19
# @build 1534
# @version 1.1
#
# Installation:
# Just put the script in your scripts folder and reload.
#
# Usage:
# Just say someone's name, everything is automatic.
# Type /alertme or /chatalert to opt out of chat noises.
#
#
# ---------------------------- END HEADER ----------------------------
chat_alert_world:
type: world
debug: false
events:
on player chats:
- playsound <server.list_online_players.exclude[<server.get_online_players_flagged[chatalert_optout]>]> sound:NOTE_STICKS
chat_alert_command:
type: command
debug: false
name: chatalert
aliases:
- alertme
description: Sets whether you get chat alert noises.
usage: /chatalert
script:
- if <player.flag[chatalert_optout]||false> {
- flag player chatalert_optout:!
- narrate "<&b>Now receiving chat alert noises."
}
else {
- flag player chatalert_optout:true
- narrate "<&c>No longer receiving chat alert noises."
}