You are browsing as a guest.
Login | Register
~ mcmonkey's simpler pastebin ~ Inspired by Hastebin ~ home page ~ Denizen help ~
click to use the normal pastebin instead ~ Click to make your own paste ~ click to duplicate and edit this paste


Title:
Type:
Date:
By:
Raw:
Other:
...
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
2800

Broadcast Command v1
Denizen Script
2019/11/03 16:02:25 UTC-08:00
Guest
Click here to view this paste as a raw text file | Or download the script


### Broadcast Command
# Updated by Mwthorn (Discord: Mwthorn#2843) (Mail: mwthorn@gmail.com)
# Ask for help at any time on the Official Denizen Script Discord: https://discord.gg/Q6pZGSR
# Allows a user to broadcast a message to everyone. This is mainly just an example on how to make a command with Denizen.
# It has the following commands included:
# /bc (text) - Send a message to everyone (requires the permission "broadcast.use")

## Instructions:
# - Place the script in your script folder.
# - Restart server or reload scripts
# - Done! Now you can use /bc (text)

Broadcast_Command:
    type: command
    name: broadcast
    description: Broadcast something
    usage: /broadcast <&lt>text<&gt>
    debug: false
    aliases:
    - bc
    permission: broadcast.use
    permission message: Sorry, <player.name>, you don't have the permission '<permission>'!
    script:
    - if <context.args.size> == 0:
        - narrate "<&b>/bc (text)"
        - stop
    - announce "<context.args.get[1].to[<context.args.size>].space_separated.parse_color>"