Paste #14422: Untitled Paste

Date: 2015/03/11 13:20:05 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20


0.2_BROADCAST_CUSTOM_MESSAGE: 
  type: command 
  name: broadcast
  description: <AQUA>Broadcast a message to all players <&nl> connected to the server!
  usage: /broadcast 
  permission: 02.BROADCAST_CUSTOM_MESSAGE
  permission message: Sorry, <player.name>, you can't use my command because you don't have the permission '<permission>'! 

  allowed help: 
  - determine <player.is_op||<context.server>> 

  script: 
  - if !<player.has_permission[02.BROADCAST_CUSTOM_MESSAGE]> { 
    - narrate "<red>You do not have permission for that command." 
    - queue clear 
    } 
    else {
    - narrate "<RED>Broadcasting <context.raw_args>..." 
    - announce "<context.raw_args>" 
    }