View difference between Paste ID: MR8hqGG9 and EyjE5ptT
SHOW: | | - or go back to the newest paste.
1
command /pcc <player>:
2
	trigger:
3
		if {Pickpocket.%player%} is true:
4
			if {Teams.InTeam::%player%} is equal to {Teams.InTeam::%command sender%}:
5
				if {PPTime::%player%} is false:
6
					set {PPTime::%player%} to true
7
					open arg 1's inventory to the player
8
		if {Pickpocket.%player%} is false:
9
			message "{@PM}" to the command sender
10
			stop
11
		else:
12-
			message "{@P} You cannot open another inventory for another %{PPTime::%player%}% minutes!"
12+
			if {Teams.InTeam::%player%} is not equal to {Teams.InTeam::%command sender%}:
13-
13+
				message "{@P} You cannot open another inventory for another %{PPTime::%player%}% minutes!"