View difference between Paste ID: PdFZ2bRX and 34A2nSi9
SHOW: | | - or go back to the newest paste.
1
variables:
2
	{Parkour.pessoas} = 0
3
4
on sign change:
5
	if line 1 of block is "[Parkour]":
6
		set line 1 to "&b[Parkour]"
7
		wait 2 ticks
8
		if {Parkour.acontecendo} is false:
9
			set line 3 to "&4&lOFFLINE"
10
			set line 4 to "&f&l0 players"
11
			stop
12
			wait 2 ticks
13
			if {Parkour.acontecendo} is true:
14
				set line 3 to "&4&lEM JOGO"
15
				set line 4 to "&f&l%{Parkour.pessoas}% players"
16
				stop
17
				wait 2 ticks
18
				if {Parkour.iniciando} is true:
19
					set line 3 to "&e&lINICIANDO"
20
					set line 4 to "&f&l%{Parkour.pessoas}% players"
21
					stop
22
					
23
on rightclick on a sign:
24
	if line 1 of the clicked block is "&b[Parkour]":
25-
		if line 3 of the clicked block is "&4&lOFFLINE":
25+
26
			set line 3 to "&4&lOFFLINE"
27-
		if line 3 of the clicked block is "&4&lEM JOGO":
27+
28-
			send "{@P} O Evento ja esta acontecendo!"
28+
			if line 3 of the clicked block is "&4&lOFFLINE":
29-
		if line 3 of the clicked block is "&e&lINICIANDO":
29+
				send "{@P} O Evento esta offline!"
30-
			teleport player to {Parkour.spawn}
30+
			if line 3 of the clicked block is "&4&lEM JOGO":
31-
			send "{@P} Teleportado!"
31+
				send "{@P} O Evento ja esta acontecendo!"
32
			if line 3 of the clicked block is "&e&lINICIANDO":
33
				teleport player to {Parkour.spawn}
34
				send "{@P} Teleportado!"
35
		if {Parkour.acontecendo} is true:
36
			set line 3 to "&4&lEM JOGO"
37
			set line 4 to "&f&l%{Parkour.pessoas}% players"
38
			if line 3 of the clicked block is "&4&lOFFLINE":
39
				send "{@P} O Evento esta offline!"
40
			if line 3 of the clicked block is "&4&lEM JOGO":
41
				send "{@P} O Evento ja esta acontecendo!"
42
			if line 3 of the clicked block is "&e&lINICIANDO":
43
				teleport player to {Parkour.spawn}
44
				send "{@P} Teleportado!"			
45
		if {Parkour.iniciando} is true:
46
			set line 3 to "&e&lINICIANDO"
47
			set line 4 to "&f&l%{Parkour.pessoas}% players"
48
			if line 3 of the clicked block is "&4&lOFFLINE":
49
				send "{@P} O Evento esta offline!"
50
			if line 3 of the clicked block is "&4&lEM JOGO":
51
				send "{@P} O Evento ja esta acontecendo!"
52
			if line 3 of the clicked block is "&e&lINICIANDO":
53
				teleport player to {Parkour.spawn}
54
				send "{@P} Teleportado!"