- 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


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2020/04/11 07:47:16 UTC-07:00
ByGuest
Other
Paste
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
connect:
  type: world
  events:
    on server start:
    - wait 10s
    - ~discord id:chat connect code:yourbottoken
    - discord id:chat message channel:698246797520404630 "**[:heavy_check_mark:]** Server has started."
    on player chats:
    - discord id:chat message channel:698246797520404630 "**[CH] <player.chat_prefix.parse_color.strip_color> <player.name>** >> <context.message>"
    on discord message received by cbot:
    - if <context.channel.id> != 698246797520404630:
      - queue clear
    - if <context.message.starts_with[**]>:
      - queue clear
    - if <context.message.starts_with[!playerlist]>:
      - discord id:chat message channel:698246797520404630 "**Server players(<server.list_online_players.filter[has_permission[pv.see].not].size>):** <server.list_online_players.filter[has_permission[pv.see].not].parse[name].comma_separated>"
      - queue clear
    - else:
      - announce "<&8>[<&d>Discord<&8>]<&8> [<&6>CH<&8>] <&f><context.author.name><context.no_mention_message>"
    on player quit:
    - if <player.is_op> || <player.has_permission[pv.see]>:
      - queue clear
    - discord id:chat message channel:698246797520404630 "**[-] <player.name>** has left the server."
    on player joins:
    - if <player.is_op> || <player.has_permission[pv.see]>:
      - queue clear
    - discord id:chat message channel:698246797520404630 "**[+] <player.name>** has joined the server."



RawRaw



Pastes made: 78226