- 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


TitleServer World Script Testing
TypeDenizen Script
Date2014/09/07 13:56:36 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
29
2900
#Violet Server World Scripts v0.00001
#By TheGeek007
#9-7-14

VioletWorldScript:
    type: world
    events:
        on server start:
        #set a server flag a list of naughty words
        - flag server naughtywords:fuck|shit|damn|pussy|cunt|bitch|nigger|ass|dick|penis
#to add a naughty word /ex flag server naughtywords:->:word
#to remove a naughty word /ex flag server naughtywords:<-:word
        on player chat:
        - foreach <server.flag[naughtywords].as_list||null> {
          if <chat.message.contains[%value%]> {
            - announce "[Officer Jenny]- Offensive words aren't allowed on our server, <player.name>!"
            - burn <player.name> duration:5
            - announce "Officer Jenny's Growlithe used Fire Spin on <player.name> for Bad Language!"
          }
        }
        - <context.message.replace[regex:<server.flag[naughtywords].as_list.replace[li@]>].with[***]>

        on player uses portal:
        #Makes players not able to use portals AT ALL!!! (YAY!)
        - determine CANCELLED

        on portal created:
        - announce "A portal has been created at <context.location> in world <context.world> for reason <context.reason>!"



RawRaw



Pastes made: 64488