#Made by: KeangDavid
#Server: mc.keangdom.com
#uses /pvpon and pvpoff to toggle a players ability to fight other players
pvp:
type: world
events:
on pvpon command:
- if !<player.flag[pvp]> flag player pvp
- narrate "<green>You<blue> have turned pvp ON."
- determine FULFILLED
on pvpoff command:
- if <player.flag[pvp]> flag player pvp:!
- narrate "<green>You<red> have turned pvp OFF."
- determine FULFILLED
on player damages player:
- if !<player.flag[pvp]> {
- narrate "<red>You have pvp turned off."
- determine CANCELLED
}
- if !<<context.entity>.flag[pvp]> {
- narrate "<red>Target has pvp turned off."
- determine CANCELLED
}