View difference between Paste ID: yzdy7pWa and qgHWhz4R
SHOW: | | - or go back to the newest paste.
1
#---------------------------------------------------#
2
#													#
3
#	Custom Death Messages							#
4
#													#
5
#	Created by Fake	/ CraftageSetups	  			#
6
#													#
7
#---------------------------------------------------#
8
9
#---------------------------------------------------#
10
#													#
11
#	Main Options - Edit Below!						#
12
#													#
13
#	prefix = &8[&bFactions&3X&8]					#
14
#	main-color = &b				#
15
#	secondary-color = &3	#
16
#													#
17
#---------------------------------------------------#
18-
variables:
18+
19-
	{second::%player%} = 0
19+
20-
	{minute::%player%} = 0
20+
	prefix: &8[&bFactions&3X&8]
21-
	{hour::%player%} = 0
21+
22
	secondary-color: &f
23
24-
	prefix: &f[&5Death&f]
24+
25
#---------------------------------------------------#
26
#													#
27-
	Prefix: &b&lPlaytime &f•
27+
28-
	Message: &fYou've played for
28+
29-
	MessageDays: &f• Days
29+
30-
	MessageHours: &f• Hours
30+
31-
	MessageMinutes: &f• Minutes
31+
32-
	MessageSeconds: &f• Seconds
32+
33-
	DayCount: d
33+
34-
	HourCount: h
34+
35-
	MinuteCount: m
35+
36-
	SecondCount: s
36+
37-
	ColorCount: &b
37+
38-
	HelpTitle: &b&lPlaytime Help&f
38+
39-
	HelpMsg1: &b/playtime&f Show your playtime.
39+
40-
	HelpMsg2: &b/playtime help&f Show this message.
40+
41-
	InvalidArg: Invalid argument!								# Access to all commands
41+
42-
	prefix1: &8[&b&lPlaytime&8]									# Prefix on chat messages
42+
43
	if damage was caused by potion:
44
		set the death message to "{@prefix} {@main-color}%victim% {@secondary-color}was killed by magic."#
45
		
46
	else:
47
		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!"	
48
49
50
command /freeze [<player>]:
51
52
	permission: freezer.freeze
53
54
	trigger:
55
56
		if arg 1 is not set:
57
58
			send "&4Error >> &cdo /freeze (player)"
59
60
		if arg 1 is set:
61
62
			set {freeze.move.%arg-1%} to true
63
64
			send "&a&o%arg-1% has been frozen"
65
66
			broadcast "&7&4%arg-1% &7has been frozen by &4%player% &7for hacking, &4do not logout!"
67
			message "&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! -> https://discord.gg/A59nAy2 <- %newline%" to arg 1
68
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
		if arg 1 is set:
80-
# +-----------------------------------------+ #
80+
81-
#
81+
82-
#				Configuration
82+
83-
#
83+
84-
#     Configure the messages/colors here.
84+
85-
#
85+
86-
# +-----------------------------------------+ #
86+
87-
command /playtime [<text>]:
87+
88
on any movement:
89
90-
			message "{@Prefix} {@Message}:"
90+
91-
			message "{@MessageDays}: {@ColorCount}%{Days.%player%}% {@DayCount}"
91+
92-
			message "{@MessageHours}: {@ColorCount}%{Hours.%player%}% {@HourCount}"
92+