View difference between Paste ID: pPhiUz2e and f4m6mD1n
SHOW: | | - or go back to the newest paste.
1-
options:
1+
command /chat [<text>] [<text>] [<text>]:
2-
	#Liczba czasu w minutach kiedy ma uruchamiać zapis świata.
2+
		permission: sk.chat
3-
	time: 5
3+
		trigger:
4-
every {@time} minutes:
4+
				argument 1 is "off":
5-
	broadcast "&4[&5SafeMap&4] &bAutomatyczne zapisywanie mapy uruchomione!"
5+
						set {chat.allowed} to false
6-
	execute console command "save-all"
6+
						broadcast "<light red>Chat zostal wylaczony przez %player%"
7-
	broadcast "&4[&5SafeMap&4] &bAutomatyczne zapisywanie mapy zakonczone!"
7+
				argument 1 is "on":
8-
command /zapisz:
8+
						set {chat.allowed} to true
9-
	permission: sk.zapisz
9+
						broadcast "<light green>Chat zostal wlaczony przez %player%"
10-
	trigger:
10+
				argument 1 is "wyczysc":
11-
		broadcast "&4[&5SafeMap&4] &bAutomatyczne zapisywanie mapy uruchomione pzez %player%!"
11+
						execute console command "cc %player%"
12-
		execute console command "save-all"
12+
				argument 1 is "temp":
13-
		broadcast "&4[&5SafeMap&4] &bAutomatyczne zapisywanie mapy zakonczone!"
13+
						if argument 2 is set:
14
							if argument 3 is set:
15
								if {chat.%argument 2%.czas} is not set:
16
									if {chat.%argument 3%.powod} is not set:
17
										set {chat.allowed} to false
18
										broadcast "<light red>Chat zostal wylaczony czasowo na %argument 2% przez %player%. Powod: %argument 3%"
19
										wait %argument 2% real second
20
										set {chat.allowed} to true
21
										broadcast "<light green>Chat zostal wlaczony"
22
				argument 1 is "autor":
23
						message "----- &3Chat&6Plugin &f-----"
24
						message " &7Autor: &9~NNoF"#zakaz zmieniana tych wiadomości
25
						message " &7Wersja Skryptu: &91.0 BETA"
26
						message " &7Znajdziesz mnie na: &9Bukkit.pl&8"
27
on chat:
28
		if player has permission "sk.echat":
29
				stop
30
		else:
31
				if {chat.allowed} is false:
32
						cancel event
33
						send "<light red>Chat jest obecnie wylaczony!"
34
						stop
35
				if {chat.allowed} is true:
36
						stop