Jump to content

Basic PvP Toggle Skript


Diamistic

Recommended Posts

I haven't tested it, and I just made it, if it doesn't work then my bad.

 

#i don't care if you change any of this, go ahead

command /pvp:
	permission: pvp.toggle
	permission message: &cYou do not have permission to do that.
	trigger:
		if {map.pvp} is false:
			broadcast "&c%player% enabled PvP in all worlds."
			set {map.pvp} to true
		else if {map.pvp} is not false:
			broadcast "&c%player% disabled PvP in all worlds."
			set {map.pvp} to false

on damage:
	if attacker is a player:
		if victim is a player:
			if {map.pvp} is false:
				cancel event
                send "&cPvP is currently disabled at this time."

 

  • Thanks 1

aeiou

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...