View difference between Paste ID: VUxHhKq8 and jKci8WtN
SHOW: | | - or go back to the newest paste.
1
command /tntwyrzuc:
2
	trigger:
3
		set {_wait} to difference between {use.%player%.last} and now
4
		if player has permission "rzucane.tnt":
5
			shoot tnt with speed 5
6
		else:
7
			if {_wait} is less than 30 minutes:
8
				send "&c[&6TNT&c] &aMusisz jeszcze poczekac zanim rzucisz TNT!" to player
9
			else:
10-
				shoot tnt with speed 5
10+
				if player is holding tnt:
11-
				remove 1 tnt from player
11+
					shoot tnt with speed 5
12-
				set {use.%player%.last} to now
12+
					remove 1 tnt from player
13-
				send "&c[&6TNT&c] &aWlasnie rzuciles TNT!" to player
13+
					set {use.%player%.last} to now
14
					send "&c[&6TNT&c] &aWlasnie rzuciles TNT!" to player
15
				else:
16
					send "&c[&6TNT&c] &aMusisz trzymac w rece TNT!" to player