View difference between Paste ID: Rku0yA4Q and qgHWhz4R
SHOW: | | - or go back to the newest paste.
1-
#---------------------------------------------------#
1+
#Options
2-
#													#
2+
3-
#	Custom Death Messages							#
3+
    heart: ♥
4-
#													#
4+
    ver: 1.0
5-
#	Created by Fake	/ CraftageSetups	  			#
5+
6-
#													#
6+
on death of player:
7-
#---------------------------------------------------#
7+
    if attacker is a player:
8
        if projectile is set:
9-
#---------------------------------------------------#
9+
            if victim is player:
10-
#													#
10+
                set the death message to "&c%victim% &7was shot by &c%attacker%&7 &8[&c%attacker's health%{@heart}&8]&7!"
11-
#	Main Options - Edit Below!						#
11+
                stop
12-
#													#
12+
13-
#	prefix = &8[&bFactions&3X&8]					#
13+
    if attacker is not a player:
14-
#	main-color = &b				#
14+
        if attacker is set:
15-
#	secondary-color = &3	#
15+
            if victim is player:
16-
#													#
16+
                set the death message to "&c%victim% &7was killed by a &c%attacker%&7 &8[&c%attacker's health%{@heart}&8]&7!"
17-
#---------------------------------------------------#
17+
                stop
18-
variables:
18+
19-
	{second::%player%} = 0
19+
    if attacker is a player:
20-
	{minute::%player%} = 0
20+
        if attacker is set:
21-
	{hour::%player%} = 0
21+
            if victim is player:
22
                set the death message to "&c%victim% &7was beaten to death by &c%attacker%&7 &8[&c%attacker's health%{@heart}&8]&7!"
23-
	heart: ❤
23+
                stop
24-
	prefix: &f[&5Death&f]
24+
25-
	main-color: &d
25+
    if damage was caused by potion:
26-
	secondary-color: &f
26+
        if victim is player:
27-
	Prefix: &b&lPlaytime &f•
27+
            set the death message to "&c%victim% &7was killed by &e&k--&7magic&e&k--&7."
28-
	Message: &fYou've played for
28+
            stop
29-
	MessageDays: &f• Days
29+
30-
	MessageHours: &f• Hours
30+
    if damage was caused by fall:
31-
	MessageMinutes: &f• Minutes
31+
        if victim is player:
32-
	MessageSeconds: &f• Seconds
32+
            set the death message to "&c%victim% &7tried the leap of faith."
33-
	DayCount: d
33+
            stop
34-
	HourCount: h
34+
35-
	MinuteCount: m
35+
    if damage was caused by lava:
36-
	SecondCount: s
36+
        if victim is player:
37-
	ColorCount: &b
37+
            set the death message to "&c%victim% &7thought swimming in lava was a good idea."
38-
	HelpTitle: &b&lPlaytime Help&f
38+
            stop
39-
	HelpMsg1: &b/playtime&f Show your playtime.
39+
40-
	HelpMsg2: &b/playtime help&f Show this message.
40+
    if damage was caused by burning:
41-
	InvalidArg: Invalid argument!								# Access to all commands
41+
        if victim is player:
42-
	prefix1: &8[&b&lPlaytime&8]									# Prefix on chat messages
42+
            set the death message to "&c%victim% &7just got roasted."
43
            stop
44
45-
#---------------------------------------------------#
45+
    if damage was caused by drown:
46-
#													#
46+
        if victim is player:
47-
#	Skript - Do not touch!							#
47+
            set the death message to "&c%victim% &7never learnt how to swim."
48-
#													#
48+
            stop
49-
#---------------------------------------------------#
49+
50
    if damage was caused by starvation:
51-
on death:
51+
        if victim is player:
52
            set the death message to "&c%victim% &7was starved to death."
53-
	if attacker is a player:
53+
            stop
54-
		if projectile is set:
54+
55-
			set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was shot by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"
55+
    if damage was caused by lightning:
56-
		else:
56+
        if victim is player:
57-
			set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"
57+
            set the death message to "&c%victim% &7was struck by lightning."
58
            stop
59-
	if attacker is not a player:
59+
60-
		if attacker is set:
60+
    if damage was caused by block explosion:
61-
			set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"
61+
        if victim is player:
62
            set the death message to "&c%victim% &7was blown to bits."
63-
	if damage was caused by potion:
63+
            stop
64-
		set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by magic."#
64+
65-
		
65+
66-
	else:
66+
67-
		set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by {@main-color}%attacker%{@secondary-color}! {@main-color}%attacker's health% {@heart} {@secondary-color}Left!"	
67+
68
	permission: freezer.freeze
69-
# +-----------------------------------------+ #
69+
70-
#
70+
71-
#				 Splaytime
71+
72-
#
72+
73-
#	the name actually means Skript-Playtime,
73+
74-
#            not splaytime...
74+
75-
#
75+
76-
#			 skript by zDan_YT
76+
77-
#
77+
78-
# +-----------------------------------------+ #
78+
79
80-
# +-----------------------------------------+ #
80+
81-
#
81+
82-
#				Configuration
82+
83-
#
83+
			send "&4You were frozen by %player% for hacking, do not logout or you will be permanently banned %newline%. You can admit for a shorter ban or accept a screenshare! %newline% &4Join our discord and join Requesting Staff if you wish to do a screenshare and prove your innocence! %newline% &4Here is the discord link! -> &7&nhttps://discord.gg/A59nAy2&4 <- %newline%" to arg 1
84-
#     Configure the messages/colors here.
84+
85-
#
85+
86-
# +-----------------------------------------+ #
86+
87-
command /playtime [<text>]:
87+
88
89
	trigger:
90-
			message "{@Prefix} {@Message}:"
90+
91-
			message "{@MessageDays}: {@ColorCount}%{Days.%player%}% {@DayCount}"
91+
92-
			message "{@MessageHours}: {@ColorCount}%{Hours.%player%}% {@HourCount}"
92+
93-
			message "{@MessageMinutes}: {@ColorCount}%{Minutes.%player%}% {@MinuteCount}"
93+
94-
			message "{@MessageSeconds}: {@ColorCount}%{Seconds.%player%}% {@SecondCount}"
94+
95
		if arg 1 is set:
96-
			if arg 1 is "help":
96+
97-
				message "{@HelpTitle}:"
97+
98-
				message "{@HelpMsg1}"
98+
99-
				message "{@HelpMsg2}"
99+
100-
			if arg 1 is not "help":
100+
101-
				message "{@InvalidArg}"
101+
			send "&2You were unfrozen by %player%! Sorry about that. Have a nice day &c❤" to arg 1
102
103-
every 1 second:
103+
104-
	loop all players:
104+
105-
		add 1 to {Seconds.%loop-player%}
105+
106-
		if {Seconds.%loop-player%} is 60:
106+
107-
			set {Seconds.%loop-player%} to 0
107+
108-
			add 1 to {Minutes.%loop-player%}
108+