- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register








The script repo is an archive of historical scripts. For modern scripts, or to post your own, please use the Scripts forum section.





Staff Pick: Chat Alert


By mcmonkey
Created: 2014/11/19 17:30:15 UTC-08:00 (10 years and 35 days ago)
Edited: 2015/02/25 12:54:10 UTC-08:00 (9 years and 302 days ago)
Likes: 1

Staff pick as of: 2014/11/19 17:30:20 UTC-08:00 (10 years and 35 days ago)
Denizen Version: 0.9.6
Script Version: 1.0
Description:

Makes a gentle noise whenever someone chats, so you're more likely to notice it, particularly if you often tab out of your minecraft window.


Download script | View raw 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
46
47
48
49
50
5000

# +--------------------
# |
# | 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."
      }









View History