View difference between Paste ID: gkmdrusH and XUNRYej2
SHOW: | | - or go back to the newest paste.
1
command /brinquedo:
2
    description: &e&lKit Brinquedo!!
3
    usage: &e&lUse /brinquedo
4
    permission: thekits.brinquedo
5
    permission message: &c&lVocê não tem permissão para usar este kit!
6
    trigger:
7-
        give player a diamond sword named "&1&lBrinquedo &d&lSword"
7+
	if {brinquedo.%player%} is not set:
8-
        give player a wooden hoe named "&1&lRoça &d&lRoça"
8+
		give player a diamond sword named "&1&lBrinquedo &d&lSword"
9-
        give player 34 mushroom stew named "&1&lSopa Do &d&lBrinquedo"
9+
		give player a wooden hoe named "&1&lRoça &d&lRoça"
10-
        set helmet of the player to a iron helmet
10+
		give player 34 mushroom stew named "&1&lSopa Do &d&lBrinquedo"
11-
        set chestplate of the player to a iron chestplate
11+
		set helmet of the player to a iron helmet
12-
        set leggings of the player to a iron leggings
12+
		set chestplate of the player to a iron chestplate
13-
        set boots of the player to a iron boots
13+
		set leggings of the player to a iron leggings
14-
        set {brinquedo} to true
14+
		set boots of the player to a iron boots
15
		set {brinquedo.%player%} to true
16
17
on death:
18
	if {brinquedo.%victim%} is set:
19
		clear {brinquedo.%victim%}
20-
	if {brinquedo} is true:
20+
21-
	name of player's tool is "&6Roça Roça":
21+
22-
	set {_espera} to difference between {Brinquedo.Delay::%player%} and now
22+
23-
	if {_espera} is less than 30 seconds:
23+
	if {brinquedo.%player%} is true:
24-
		send "&cVoce deve esperar jovem padawan"
24+
		name of player's tool is "&6Roça Roça":
25-
		stop
25+
		set {_espera} to difference between {Brinquedo.Delay::%player%} and now
26-
	apply potion of nausea of tier 1 to clicked player for 15 seconds
26+
		if {_espera} is less than 30 seconds:
27-
	apply potion of hunger of tier 1 to clicked player for 6 seconds
27+
			send "&cVoce deve esperar %difference between {_espera} and 30 seconds%"
28-
	set {Brinquedo.Delay::%player%} to now
28+
			stop
29-
	if {brinquedo} is false:
29+
		apply potion of nausea of tier 1 to clicked player for 15 seconds
30-
	stop
30+
		apply potion of hunger of tier 1 to clicked player for 6 seconds
31
		set {Brinquedo.Delay::%player%} to now
32
	else:
33
		stop