Date: 2014/09/07 13:55:59 UTC-07:00
Type: Denizen Script
#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 death:
- if <context.damager.is_player> {announce "A <context.entity.as_player.name> was killed by <context.damager.as_player.name>!"}
#make player drop 1 diamond, 1 iron sword, and 1 glass block
#- determine drops i@diamond|i@iron_sword|i@glass
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>!"