This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcementery2.0.sk
91 lines (70 loc) · 2.13 KB
/
cementery2.0.sk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#Author: Mikael
#https://github.com/Michallesss
#Mikael#0168
#Cementary2.0
#JohnTheServer Copyrights(R)
#Version: 1.3 Pre
options:
x.kordy.cmentarzu: 1615.5
y.kordy.cmentarzu: 46
z.kordy.cmentarzu: -92.5
swiat.cmentarzu: world
a.widok: 135
b.widok: 10
# Czas w którym gracz będzie w szpialu
options:
czas: 60 #seconds
doing: false #tego nie tykać
# Miejsce gdzie gracz będzie się respił (już po wyjściu ze szpitala)
options:
x.kordy.spawna: 1577.5
y.kordy.spawna: 71
z.kordy.spawna: 79.5
swiat.spawna: world
# ===Events===:
on death of player:
set {@doing} to true
set {_odliczanie.do.wyjscia} to {@czas}
send "&cGracz %victim% wylądował/a na cmentarzu" to all players
force victim to respawn
while {_odliczanie.do.wyjscia} >= 0:
if {@doing} = true:
send title "&4&lZostało %{_odliczanie.do.wyjscia}% sekund, do odrodzenia!" to victim
remove 1 from {_odliczanie.do.wyjscia}
wait 1 second
else:
stop loop
on quit:
if {@doing} = true:
#
else:
#
on join:
if {@doing} = true:
#
else:
#
# ===Commands===:
command /cemetery <player>:
permission: cemetery.player
trigger:
if {@doing} = false:
kill arg-1
wait 1 tick
make player execute command "/zginodrazu"
else:
send title "&c&lJesteś już na cmentarzu." to player
command /scemetery <player>:
permission: scemetery.player
trigger:
#chuj tu komendy
if {doing} = true:
stop sound "music_disc.13" for player
remove Slowness from the player
remove Blindness from the player
remove Invisibility from the player
teleport player to location({@x.kordy.spawna}, {@y.kordy.spawna}, {@z.kordy.spawna}, {swiat.spawna})
set {_odliczanie.do.wyjscia} to 0
set {doing} to false
else:
send title "&c&lNie jesteś obecnie na cmentarzu." to player